Skip to content

Commit a2366c7

Browse files
committed
2.5.0
1 parent 505e361 commit a2366c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+5375
-2105
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@ android/keystores/debug.keystore
7979
lib/
8080
.github/
8181
/example/ios/Podfile.lock
82+
tsconfig.typedoc.json
83+
typedoc.json
84+
docs/
85+
package-lock.json

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ android/keystores/debug.keystore
7878
# generated by bob
7979
lib/
8080
.github/
81+
tsconfig.typedoc.json
82+
typedoc.json

API.md

Lines changed: 312 additions & 60 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
## Newest Release
22

3+
### 2.5.0 - 23 Oct. 2025
4+
New Features
5+
1. Added the features support for ComPDFKit PDF SDK for iOS V2.5.0.
6+
2. Added the features support for ComPDFKit PDF SDK for Android V2.5.0.
7+
3. Added Spanish language support.
8+
4. Added API to render PDF pages as images
9+
5. Added API for creating forms
10+
6. Added watermark configuration options
11+
7. Added configurable border color for search results
12+
8. Added configurable highlight color for search results
13+
9. Added rectangle drawing when jumping to a page
14+
10. Added API to set content editing types
15+
11. Added configuration for page editing menu options
16+
12. Added UI mode configuration
17+
13. Added bottom toolbar UI configuration
18+
14. Added BOTA interface configuration
19+
15. Added control for showing and hiding the search view
20+
16. Added API to save ongoing Ink annotations
21+
17. Added API to hide the context menu
22+
18. Added theme mode configuration on iOS
23+
19. Added signature method configuration on iOS
24+
20. Added Pencil annotation toolbar configuration on iOS
25+
26+
Issues Addressed
27+
1. Fixed crash on Android caused by empty arrays in shape annotation properties
28+
2. Fixed issue where FreeText input was not properly centered on Android
29+
3. Fixed inconsistency between FreeText font size and the configured value on Android
30+
4. Fixed an issue where some documents crashed when opened on Android.
31+
5. Fixed an issue where content edits were not saved correctly on Android.
32+
6. Fixed issue where imported FreeText annotations might not display on iOS
33+
7. Fixed issue where the watermark toolbar would not appear when the top toolbar was hidden on iOS
34+
35+
36+
## Previous Release
37+
338
### 2.4.7 - 12 Sep. 2025
439
New Features
540
1. Added the features support for ComPDFKit PDF SDK for iOS V2.4.7.
@@ -11,11 +46,7 @@ New Features
1146
7. Fixed an issue where some documents failed to correctly trigger callbacks for the first or last page.
1247

1348

14-
15-
## Previous Release
16-
1749
### 2.4.6 - 29 Aug. 2025
18-
1950
1. Updated iOS ComPDFKit PDF SDK to version 2.4.6.
2051
2. Updated Android ComPDFKit PDF SDK to version 2.4.6.
2152
3. Added compatibility for Android 15 and Android 16.

CONFIGURATION.md

Lines changed: 99 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ Used to configure the initial display mode and supported modes when displaying a
9494

9595
##### **Parameters**
9696

97-
| Name | Type | Description |
98-
| ------------------ | ------- | ------------------------------------------------------------ |
99-
| initialViewMode | string | Default mode to display when opening the PDF View, default is `viewer` |
100-
| availableViewModes | string | Configure supported modes |
101-
| readerOnly | boolean | View only PDF documents, hiding all top and bottom toolbars.<br />**ComPDFKit SDK for Flutter Version:** => 2.0.2 |
97+
| Name | Type | Description |
98+
| ------------------ | ------ | ------------------------------------------------------------ |
99+
| initialViewMode | string | Default mode to display when opening the PDF View, default is `viewer` |
100+
| availableViewModes | string | Configure supported modes |
101+
| uiVisibilityMode | string | Used to set the UI visibility mode<br/>**automatic**: Toolbars at the top and bottom are automatically shown or hidden when tapping on the PDF page<br/>**always**: Toolbars are always visible <br/>**never**: Toolbars are never displayed |
102102

103103
##### **Constants**
104104

@@ -114,7 +114,7 @@ Used to configure the initial display mode and supported modes when displaying a
114114
{
115115
"modeConfig": {
116116
"initialViewMode": "viewer",
117-
"readerOnly": false,
117+
"uiVisibilityMode": "automatic",
118118
"availableViewModes": [
119119
"viewer",
120120
"annotations",
@@ -141,6 +141,10 @@ Configure functions for the top toolbar in the PDF view.
141141
| mainToolbarVisible | boolean | Whether to display the toolbar at the top of the main interface view. |
142142
| annotationToolbarVisible | boolean | Shows or hides the annotation toolbar that appears at the bottom of the view when in annotation mode. |
143143
| showInkToggleButton | boolean | Whether to display the toggle/slide and drawing state buttons in the upper-left corner when drawing ink annotations. |
144+
| contentEditorToolbarVisible | boolean | Show or hide the bottom toolbar in content editing mode |
145+
| formToolbarVisible | boolean | Show or hide the bottom toolbar in form mode |
146+
| signatureToolbarVisible | boolean | Show or hide the bottom toolbar in signature mode |
147+
| | | |
144148

145149
##### **Constants**
146150

@@ -153,22 +157,27 @@ Configure functions for the top toolbar in the PDF view.
153157

154158
##### **availableMenus Constants**
155159

156-
| Name | Description |
157-
| -------------- | ---------------------------------------------------------- |
160+
| Name | Description |
161+
| -------------- | ------------------------------------------------------------ |
158162
| viewSetting | Settings related to PDF viewing, such as scroll direction and theme. |
159163
| documentEditor | Displays a list of PDF document thumbnails and allows page manipulation such as addition and deletion. |
160-
| documentInfo | Displays information related to the PDF document. |
164+
| documentInfo | Displays information related to the PDF document. |
161165
| watermark | Adds text or image watermark to the document, saving it as a new document. |
162-
| security | Sets viewing and permission passwords for the document. |
166+
| security | Sets viewing and permission passwords for the document. |
163167
| flattened | Flattens annotations and other content within the document, making annotations uneditable. |
164-
| save | Saves the document. |
165-
| share | Shares the PDF document. |
168+
| save | Saves the document. |
169+
| share | Shares the PDF document. |
166170
| openDocument | Opens the system file selector to choose and open a PDF document. |
167171
| snip | The PDF capture function allows you to capture an area in the PDF document and convert it into an image. |
168172
```json
169173
{
170174
"toolbarConfig": {
171175
"mainToolbarVisible" : true,
176+
"contentEditorToolbarVisible" : true,
177+
"annotationToolbarVisible" : true,
178+
"formToolbarVisible" : true,
179+
"signatureToolbarVisible" : true,
180+
"showInkToggleButton": true,
172181
"androidAvailableActions": [
173182
"thumbnail",
174183
"search",
@@ -792,10 +801,11 @@ This section is used to configure the types of forms enabled in the view's botto
792801
| ----------------------- | ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
793802
| themeMode | CPDFThemeMode | light | Set the view theme style, support `light`, `dark`, `system`, the default is `light` theme<br />**ComPDFKit SDK for Flutter:** => 2.0.2<br />Only Android Platform. |
794803
| fileSaveExtraFontSubset | boolean | true | When saving a document, whether to save the used font set together with the document. |
795-
| watermark | CPDFWatermarkConfig | { "saveAsNewFile" : true, <br />"outsideBackgroundColor: ""<br />} | The user can configure the watermark addition popup, allowing them to choose whether to save the watermark directly to the current document or save it to a different directory.<br>**true**: Save to a different directory<br>**false**: Add to the current document directly |
796-
| signatureType | String | manual | Used to configure the default signing method when signing in the form field of CPDFReaderView.<br />Type:<br />* manual<br />* digital<br />* electronic |
797-
| enableExitSaveTips | boolean | true \| false | When exiting, check if the document has been modified and prompt to save the document |
804+
| watermark | CPDFWatermarkConfig | | Watermark configuration when opening the Add Watermark view |
798805
| thumbnail | CPDFThumbnail | { "title" : "", <br />"backgroundColor": "", <br /> "editMode" : true <br />} | |
806+
| enableErrorTips | boolean | true \| false | Whether to enable error prompts. For example, if a page cannot add a highlight annotation, setting this to false will prevent the prompt message from appearing. |
807+
| signatureType | String | manual | Used to configure the default signing method when signing in the form field of CPDFReaderView.<br />Type:<br />* manual<br />* digital<br />* electronic |
808+
| bota | CPDFBotaConfig | | Used to configure the enabled feature types and menu options in the BOTA interface |
799809

800810
##### themeMode Constants
801811

@@ -1040,15 +1050,13 @@ The context menu configuration in form mode displays different context menu opti
10401050
}
10411051
```
10421052

1043-
1044-
10451053
## Json Example
10461054

10471055
```json
10481056
{
10491057
"modeConfig": {
10501058
"initialViewMode": "viewer",
1051-
"readerOnly": false,
1059+
"uiVisibilityMode": "automatic",
10521060
"availableViewModes": [
10531061
"viewer",
10541062
"annotations",
@@ -1059,7 +1067,10 @@ The context menu configuration in form mode displays different context menu opti
10591067
},
10601068
"toolbarConfig": {
10611069
"mainToolbarVisible" : true,
1070+
"contentEditorToolbarVisible" : true,
10621071
"annotationToolbarVisible" : true,
1072+
"formToolbarVisible" : true,
1073+
"signatureToolbarVisible" : true,
10631074
"showInkToggleButton": true,
10641075
"androidAvailableActions": [
10651076
"thumbnail",
@@ -1310,23 +1321,87 @@ The context menu configuration in form mode displays different context menu opti
13101321
"pageSpacing": 10,
13111322
"margins" : [0,0,0,0],
13121323
"pageScale": 1.0,
1313-
"pageSameWidth": true
1324+
"pageSameWidth": true,
1325+
"enableMinScale": true
13141326
},
13151327
"global" : {
13161328
"themeMode" : "system",
13171329
"fileSaveExtraFontSubset" : true,
13181330
"watermark": {
1319-
"saveAsNewFile" : true,
1320-
"outsideBackgroundColor" : ""
1331+
"types" : [ "text" , "image" ],
1332+
"saveAsNewFile" : false,
1333+
"outsideBackgroundColor" : "",
1334+
"text" : "",
1335+
"image" : "tools_logo",
1336+
"textSize" : 40,
1337+
"textColor" : "#FF000000",
1338+
"scale" : 1.5,
1339+
"rotation" : 0,
1340+
"opacity" : 255,
1341+
"isFront" : false,
1342+
"isTilePage" : false
13211343
},
1322-
"signatureType": "manual",
1323-
"enableExitSaveTips" : true,
13241344
"thumbnail": {
13251345
"title" : "",
13261346
"backgroundColor": "",
13271347
"editMode" : true
13281348
},
1329-
"enableErrorTips" : true
1349+
"bota": {
1350+
"tabs": ["outline", "bookmark", "annotations"],
1351+
"menus": {
1352+
"annotations": {
1353+
"global": [
1354+
{ "id": "importAnnotation" },
1355+
{ "id": "exportAnnotation" },
1356+
{ "id": "removeAllAnnotation" },
1357+
{ "id": "removeAllReply" }
1358+
],
1359+
"item": [
1360+
{ "id": "reviewStatus",
1361+
"subMenus": [
1362+
"accepted",
1363+
"rejected",
1364+
"cancelled",
1365+
"completed",
1366+
"none"
1367+
]
1368+
},
1369+
{ "id": "markedStatus" },
1370+
{
1371+
"id": "more",
1372+
"subMenus": [
1373+
"addReply",
1374+
"viewReply",
1375+
"delete"
1376+
]
1377+
}
1378+
]
1379+
}
1380+
}
1381+
},
1382+
"signatureType": "manual",
1383+
"enableExitSaveTips" : true,
1384+
"enableErrorTips" : true,
1385+
"search": {
1386+
"normalKeyword": {
1387+
"borderColor": "#00000000",
1388+
"fillColor": "#77FFFF00"
1389+
},
1390+
"focusKeyword": {
1391+
"borderColor": "#00000000",
1392+
"fillColor": "#CCFD7338"
1393+
}
1394+
},
1395+
"pageEditor": {
1396+
"menus": [
1397+
"insertPage",
1398+
"replacePage",
1399+
"extractPage",
1400+
"copyPage",
1401+
"rotatePage",
1402+
"deletePage"
1403+
]
1404+
}
13301405
},
13311406
"contextMenuConfig" : {
13321407
"global": {

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ open ios/Podfile
152152
```diff
153153
target 'MyApp' do
154154
# ...
155-
+ pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.7/ComPDFKit.podspec'
156-
+ pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.4.7/ComPDFKit_Tools.podspec'
155+
+ pod "ComPDFKit", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.5.0/ComPDFKit.podspec'
156+
+ pod "ComPDFKit_Tools", podspec:'https://file.compdf.com/cocoapods/ios/compdfkit_pdf_sdk/2.5.0/ComPDFKit_Tools.podspec'
157157
# ...
158158
end
159159
```
@@ -163,8 +163,8 @@ end
163163
```diff
164164
target 'MyApp' do
165165
# ...
166-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.4.7'
167-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.4.7'
166+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.0'
167+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.5.0'
168168
# ...
169169
end
170170
```

android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ buildscript {
22
repositories {
33
google()
44
mavenCentral()
5+
maven { url 'https://central.sonatype.com/repository/maven-snapshots/' }
6+
57
}
68

79
dependencies {
@@ -81,7 +83,7 @@ dependencies {
8183
compileOnly fileTree(include: ['*.jar','*.aar'], dir: 'libs')
8284
implementation "com.facebook.react:react-native:+"
8385

84-
api "com.compdf:compdfkit-tools:2.4.7"
86+
api "com.compdf:compdfkit-tools:2.5.0"
8587
api 'com.github.bumptech.glide:glide:4.15.1'
8688
annotationProcessor 'com.github.bumptech.glide:compiler:4.15.1'
8789
api 'androidx.documentfile:documentfile:1.0.1'

0 commit comments

Comments
 (0)