Skip to content

Commit 70a84b5

Browse files
committed
compdfkit(rn) - 2.1.0
1 parent fd7c9ba commit 70a84b5

File tree

20 files changed

+2084
-2290
lines changed

20 files changed

+2084
-2290
lines changed

CHANGELOG.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
## Newest Release
22

3+
### 2.1.0 - 29 July 2024
4+
5+
* Added the features support for ComPDFKit PDF SDK for iOS V2.1.0.
6+
* Added the features support for ComPDFKit PDF SDK for Android V2.1.0.
7+
* Added annotation reply functionality.
8+
* Optimized text aggregation logic for content editing.
9+
* Added font subsetting.
10+
* Added screenshot feature.
11+
* Android platform adaptation for **Laban Key Keyboard**.
12+
* Fixed an issue with the Ink annotation color display on Android.
13+
14+
## Previous Release
15+
316
### 2.0.1 - 13 May 2024
417

518
* Provide dependency methods from GitHub and npm.
6-
719
* Added the features support for ComPDFKit PDF SDK for iOS V2.0.1.
820
* Added the features support for ComPDFKit PDF SDK for Android V2.0.1.
921
* Fix the issue of continuous memory growth.
1022

11-
12-
13-
14-
## Previous Release
15-
1623
### 2.0.1-beta.2 - 13 May 2024
1724

1825
* Adjust some document description errors.
1926

20-
2127
### 2.0.1-beta.1 - 10 May 2024
2228

2329
* Provide dependency methods from GitHub and npm.
24-
2530
* Added the features support for ComPDFKit PDF SDK for iOS V2.0.1.
2631
* Added the features support for ComPDFKit PDF SDK for Android V2.0.1.
2732
* Fix the issue of continuous memory growth.

CONFIGURATION.md

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,16 @@ var configuration = CPDFConfiguration(
6464
]
6565
)
6666
);
67-
ComPDFKit.openDocument(document, password: '', configuration: configuration);
67+
ComPDFKit.openDocument(document, password: '', configuration: configuration);
68+
69+
// usage Widget
70+
Scaffold(
71+
resizeToAvoidBottomInset: false,
72+
appBar: AppBar(title: const Text('CPDFReaderWidget Example'),),
73+
body: CPDFReaderWidget(
74+
document: widget.documentPath,
75+
configuration: configuration
76+
));
6877
```
6978

7079
### Option Explanations
@@ -77,10 +86,11 @@ Used to configure the initial display mode and supported modes when displaying a
7786

7887
##### **Parameters**
7988

80-
| Name | Type | Description |
81-
| ------------------ | ------ | ------------------------------------------------------------ |
82-
| initialViewMode | string | Default mode to display when opening the PDF View, default is `viewer` |
83-
| availableViewModes | string | Configure supported modes |
89+
| Name | Type | Description |
90+
| ------------------ | ------- | ------------------------------------------------------------ |
91+
| initialViewMode | string | Default mode to display when opening the PDF View, default is `viewer` |
92+
| availableViewModes | string | Configure supported modes |
93+
| readerOnly | boolean | View only PDF documents, hiding all top and bottom toolbars.<br />**ComPDFKit SDK for Flutter Version:** => 2.0.2 |
8494

8595
##### **Constants**
8696

@@ -181,11 +191,12 @@ Configure annotation-related settings, such as enabling types displayed in the a
181191

182192
##### **Parameters**
183193

184-
| Name | Type | Description |
185-
| -------------- | ----- | ------------------------------------------------------------ |
186-
| availableTypes | Array | The types of annotations enabled in the toolbar at the bottom. |
187-
| availableTools | Array | Annotation tools, including `Setting`, `Undo`, and `Redo`. |
188-
| initAttribute | Array | Set default attributes for annotations. |
194+
| Name | Type | Description |
195+
| ---------------- | ------ |--------------------------------------------------------------------------|
196+
| availableTypes | Array | The types of annotations enabled in the toolbar at the bottom. |
197+
| availableTools | Array | Annotation tools, including `Setting`, `Undo`, and `Redo`. |
198+
| initAttribute | Array | Set default attributes for annotations. |
199+
| annotationAuthor | String | Set the author name when adding annotations and replying to annotations. |
189200

190201
##### **availableTypes Constants**
191202

@@ -333,7 +344,7 @@ Configure annotation-related settings, such as enabling types displayed in the a
333344
| typeface | string | Helvetica | The font used by default for text.<br />`Courier`<br/>`Helvetica`<br/>`Times-Roman` |
334345

335346
```json
336-
{
347+
{
337348
"annotationsConfig": {
338349
"availableTypes": [
339350
"note",
@@ -755,6 +766,23 @@ This section is used to configure the types of forms enabled in the view's botto
755766
| sepia | brown paper color. |
756767
| reseda | Light green, eye protection mode. |
757768

769+
#### globalConfig
770+
771+
##### Parameters
772+
773+
| Name | Type | Example | Description |
774+
| ----------------------- | ------------- | ------- | ------------------------------------------------------------ |
775+
| 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. |
776+
| fileSaveExtraFontSubset | boolean | true | When saving a document, whether to save the used font set together with the document. |
777+
778+
##### themeMode Constants
779+
780+
| Name | Description |
781+
| ------ | ------------------------------------- |
782+
| light | The UI is displayed in a light theme. |
783+
| dark | The UI is displayed in a dark theme. |
784+
| system | Theme follow system settings. |
785+
758786

759787

760788
## Json Example
@@ -763,6 +791,7 @@ This section is used to configure the types of forms enabled in the view's botto
763791
{
764792
"modeConfig": {
765793
"initialViewMode": "viewer",
794+
"readerOnly": false,
766795
"availableViewModes": [
767796
"viewer",
768797
"annotations",
@@ -800,6 +829,7 @@ This section is used to configure the types of forms enabled in the view's botto
800829
]
801830
},
802831
"annotationsConfig": {
832+
"annotationAuthor": "Guest",
803833
"availableTypes": [
804834
"note",
805835
"highlight",
@@ -1016,6 +1046,10 @@ This section is used to configure the types of forms enabled in the view's botto
10161046
"pageSpacing": 10,
10171047
"pageScale": 1.0,
10181048
"pageSameWidth":true
1049+
},
1050+
"global" : {
1051+
"themeMode" : "system",
1052+
"fileSaveExtraFontSubset" : true
10191053
}
10201054
}
10211055
```

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ open ios/Podfile
117117
```diff
118118
target 'MyApp' do
119119
# ...
120-
+ pod "ComPDFKit", podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.1.podspec'
121-
+ pod "ComPDFKit_Tools", podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.1.podspec'
120+
+ pod "ComPDFKit", podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.1.0.podspec'
121+
+ pod "ComPDFKit_Tools", podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.1.0.podspec'
122122
# ...
123123
end
124124
```
@@ -128,8 +128,8 @@ end
128128
```diff
129129
target 'MyApp' do
130130
# ...
131-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.1'
132-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.1'
131+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.1.0'
132+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.1.0'
133133
# ...
134134
end
135135
```

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ repositories {
8080
dependencies {
8181

8282
implementation "com.facebook.react:react-native:+"
83-
api "com.compdf:compdfkit:2.0.1"
84-
api "com.compdf:compdfkit-ui:2.0.1"
85-
api "com.compdf:compdfkit-tools:2.0.1"
83+
api "com.compdf:compdfkit:2.1.0"
84+
api "com.compdf:compdfkit-ui:2.1.0"
85+
api "com.compdf:compdfkit-tools:2.1.0"
8686
}
8787

62.2 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

android/src/main/java/com/compdfkitpdf/reactnative/CompdfkitPdfModule.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020
import com.compdfkit.tools.common.pdf.CPDFDocumentActivity;
2121
import com.compdfkit.tools.common.pdf.config.CPDFConfiguration;
2222
import com.compdfkit.tools.common.utils.CFileUtils;
23+
import com.compdfkit.tools.common.utils.CLog;
24+
import com.compdfkit.tools.common.utils.viewutils.CViewUtils;
2325
import com.facebook.react.bridge.Promise;
2426
import com.facebook.react.bridge.ReactApplicationContext;
2527
import com.facebook.react.bridge.ReactContext;
2628
import com.facebook.react.bridge.ReactContextBaseJavaModule;
2729
import com.facebook.react.bridge.ReactMethod;
30+
import java.io.File;
2831

2932
/**
3033
* RN and Android native ComPDFKit SDK interaction class
@@ -39,6 +42,7 @@ public class CompdfkitPdfModule extends ReactContextBaseJavaModule {
3942
public static final String ASSETS_SCHEME = "file:///android_asset";
4043

4144
public static final String CONTENT_SCHEME = "content://";
45+
public static final String FILE_SCHEME = "file://";
4246

4347
private ReactContext mReactContext;
4448

@@ -178,6 +182,11 @@ private void parseDocument(String document, Intent intent) {
178182
} else if (document.startsWith(CONTENT_SCHEME)) {
179183
Uri uri = Uri.parse(document);
180184
intent.setData(uri);
185+
} else if (document.startsWith(FILE_SCHEME)) {
186+
Uri uri = Uri.parse(document);
187+
intent.setData(uri);
188+
} else {
189+
intent.putExtra(CPDFDocumentActivity.EXTRA_FILE_PATH, document);
181190
}
182191
}
183192

example/App.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ export default class App extends Component<Props> {
4545
// Online certification, Fill in your online license
4646
// Returns true if initialization is successful, otherwise returns false.
4747

48-
// var result = await ComPDFKit.initialize('your android compdfkit license', 'your ios compdfkit license')
48+
// var result = await ComPDFKit.initialize('NjYzODcyYTMxOWQzMA==', 'NjYzODcyYTgxM2YwNg==')
4949
// console.log("ComPDFKitRN", "initialize:", result)
5050

5151
// Offline authentication, Fill in your offline license
5252
var result;
5353
if (Platform.OS == 'android') {
54-
result = await ComPDFKit.init_('SsFUBGT6t2g9mu/FmY/tH2rNi83UByh2bEXYl8KViCupYHcuOtXureb7D2SXxrhIrm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aRXdIL')
54+
result = await ComPDFKit.init_('nGkHDIO2BGVr/RqhP6yQPqO0XXVHekXzzTOR0OwKQRPP0PTIwpOcxIFNXoIiFumTzRdn0VRkfudjN0qsz7HWMq0iY5jeuNTKpynGOVxwGpyvkLFybGYkoJcFlt1qUm9RGdDiXabom6SMV70WDNA1zqdsRlLeL3/5uaPvMzr73LWuoIedz5uaGN4uxs7u9CRgey9jjjf4HQHKToN52snZoX8CxH57GnhyuRvBCPQdVlmjznOKoVEczGNeHd3TS6E+HZBEmmRVL1J/CbN/EE/dnebgdoklTLMPQbUG8v0vx9fd8CJmVzCiz9NPn+i1FpF4aS4zv534glY8EI3HqU7832u0lH1oY17eVN2TRW5amzqSj1QR5Q0MX/v2nFNCjvJImeroTsMiyvSO5KjU5Zrs50W363LuCsh9JihVahrRo+lBoiot0sxqz+fq3Hbs7pICMxGH5xSv6UE1vNpAzdUnZMph9Oz69ustQh1UlotiDLuIhzmxesEyeFzUslbxjgad4wnAzUkp/0SfANyT5mw/EUMjfeSN/Pguksj7eil2awIwr/GjmH/UTOYr+yB+2NtZ6G+C/BLW1JUsdWqn542iYE9OGV+9dTHCyV+gyP2Nstp7FHUdlWeiIkfzaiP8Y+58lPpC7x05cs28uc/hwXiZGx2KvdF+199pSLVUIrj85m/7+SqS01Dz6t4RwV7CZ/nQ4KOAyptnYBkUNyyOx7Q7j3CUXnxUN5HL5Yhqq2FFaD/HTTVwcjun3kBQWAiUV1AWDLVVx4Eopc0qGGOZzwY7voumlHVxwTcoJykSsLEyoWES7nkOX0AXbzRjlD/njRNg')
5555
} else {
56-
result = await ComPDFKit.init_('t2p6R8/clQc4jpf9A++mB6YfUQ0rrECgKes5bUnW8wGwIf+R1Ot6nRmN4qBoHUqkooBY/9qhRStv0BM95jxXkTj60TiVIXy9WsztqeU33thasOiTK0hdeXMvwYZ4+4BHyQHwkYNf6/3inJiUnRl3xfTNeD8/NENiro+iLdpbEOGBNd7rTzR4p7WNo3bbLVzcvCK0esWkMXZz2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WuR4gwPBtF9P6XxsN+fojSyXX0CL5kMw9hXp/JoNGAF23/pGEAHSNANQqM0B3lrQxEp6hh1JCFC1wZpgvc00QSFN+5IcjKr2B77BJsVHOH7G7LcxYEhiLv4nVkw1cl2RYee39k6qKjPTu+WQOGpRFkITVTbXNQbkDF7cKH57wTxEvfDUqGF5ZdeMlAGlrXHwS+Ze7Zzsh970FMk51BTvlxKB5gh0zRJb7VwECD2Nw2u0lH1oY17eVN2TRW5amzqSj1QR5Q0MX/v2nFNCjvJImeroTsMiyvSO5KjU5Zrs50W363LuCsh9JihVahrRo+mDgAJSMI2qe6FgOWrSV9NdN1tUqy/YCPxz4PvAib1q0YsbM47koQNz+gWOcywgP1s0vBE/3RNraw+iWcFOaCVAycWSKPP3lIr6+zPIVeNM7/9V+hQcUgoFS+esQrrYEncuhU6kau30e4oZAeZuZW4uCPPnzCZEk9/R0sj1ymWzB5SzrGNfsaQi2wIbQLmf2MR0uIQPwcXfzClC/ew/ZZIftEaBTyRSW/L5h3X09SnC1Ll1zv4sOQxMtrlExwu34ZLOd+DRO7H3qx1BYUfGzzxDFQRFwQ0iZ7xWsXxWc0crZQxjNktT8q4J3K3dzlz2pMXaYCC/i1GyVGRKsr3yekqEvPTzvclvrpTrxPBvbA3x+eEaoo6yq7MhvZzDW1elg2+M68QoaLuDTuBaeMrpFmlS')
5757
}
5858
console.log("ComPDFKitRN", "init_:", result)
5959
}
@@ -63,6 +63,7 @@ export default class App extends Component<Props> {
6363
*/
6464
openSample() {
6565
var samplePDF: string = Platform.OS == 'android' ? 'file:///android_asset/PDF_Document.pdf' : 'PDF_Document.pdf'
66+
6667
// We provide default UI and PDF property related configurations here, you can modify configuration options according to your needs.
6768
var config = ComPDFKit.getDefaultConfig({})
6869
ComPDFKit.openDocument(samplePDF, '', config)

example/ios/CompdfkitPdfExample.xcodeproj/project.pbxproj

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1515
7699B88040F8A987B510C191 /* libPods-CompdfkitPdfExample-CompdfkitPdfExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-CompdfkitPdfExample-CompdfkitPdfExampleTests.a */; };
1616
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
17+
C9FCF5E32C475A9100CEFDBB /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = C9FCF5E12C475A9100CEFDBB /* Localizable.strings */; };
1718
ECF47E9D2BDF6D3300E7456A /* PDF_Document.pdf in Resources */ = {isa = PBXBuildFile; fileRef = ECF47E9C2BDF6D3300E7456A /* PDF_Document.pdf */; };
1819
/* End PBXBuildFile section */
1920

@@ -45,6 +46,8 @@
4546
5DCACB8F33CDC322A6C60F78 /* libPods-CompdfkitPdfExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CompdfkitPdfExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4647
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = CompdfkitPdfExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
4748
89C6BE57DB24E9ADA2F236DE /* Pods-CompdfkitPdfExample-CompdfkitPdfExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CompdfkitPdfExample-CompdfkitPdfExampleTests.release.xcconfig"; path = "Target Support Files/Pods-CompdfkitPdfExample-CompdfkitPdfExampleTests/Pods-CompdfkitPdfExample-CompdfkitPdfExampleTests.release.xcconfig"; sourceTree = "<group>"; };
49+
C9FCF5E22C475A9100CEFDBB /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
50+
C9FCF5E42C475AB600CEFDBB /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
4851
ECF47E9C2BDF6D3300E7456A /* PDF_Document.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = PDF_Document.pdf; sourceTree = "<group>"; };
4952
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
5053
/* End PBXFileReference section */
@@ -96,6 +99,7 @@
9699
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
97100
13B07FB71A68108700A75B9A /* main.m */,
98101
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
102+
C9FCF5E12C475A9100CEFDBB /* Localizable.strings */,
99103
);
100104
name = CompdfkitPdfExample;
101105
sourceTree = "<group>";
@@ -222,6 +226,7 @@
222226
knownRegions = (
223227
en,
224228
Base,
229+
"zh-Hans",
225230
);
226231
mainGroup = 83CBB9F61A601CBA00E9B192;
227232
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
@@ -247,6 +252,7 @@
247252
buildActionMask = 2147483647;
248253
files = (
249254
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
255+
C9FCF5E32C475A9100CEFDBB /* Localizable.strings in Resources */,
250256
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
251257
ECF47E9D2BDF6D3300E7456A /* PDF_Document.pdf in Resources */,
252258
);
@@ -413,6 +419,18 @@
413419
};
414420
/* End PBXTargetDependency section */
415421

422+
/* Begin PBXVariantGroup section */
423+
C9FCF5E12C475A9100CEFDBB /* Localizable.strings */ = {
424+
isa = PBXVariantGroup;
425+
children = (
426+
C9FCF5E22C475A9100CEFDBB /* en */,
427+
C9FCF5E42C475AB600CEFDBB /* zh-Hans */,
428+
);
429+
name = Localizable.strings;
430+
sourceTree = "<group>";
431+
};
432+
/* End PBXVariantGroup section */
433+
416434
/* Begin XCBuildConfiguration section */
417435
00E356F61AD99517003FC87E /* Debug */ = {
418436
isa = XCBuildConfiguration;
@@ -480,7 +498,7 @@
480498
"$(inherited)",
481499
"@executable_path/Frameworks",
482500
);
483-
MARKETING_VERSION = 1.0;
501+
MARKETING_VERSION = 2.1.0;
484502
OTHER_LDFLAGS = (
485503
"$(inherited)",
486504
"-ObjC",
@@ -511,7 +529,7 @@
511529
"$(inherited)",
512530
"@executable_path/Frameworks",
513531
);
514-
MARKETING_VERSION = 1.0;
532+
MARKETING_VERSION = 2.1.0;
515533
OTHER_LDFLAGS = (
516534
"$(inherited)",
517535
"-ObjC",
@@ -600,10 +618,7 @@
600618
"-DFOLLY_CFG_NO_COROUTINES=1",
601619
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
602620
);
603-
OTHER_LDFLAGS = (
604-
"$(inherited)",
605-
" ",
606-
);
621+
OTHER_LDFLAGS = "$(inherited) ";
607622
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
608623
SDKROOT = iphoneos;
609624
USE_HERMES = true;
@@ -675,10 +690,7 @@
675690
"-DFOLLY_CFG_NO_COROUTINES=1",
676691
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
677692
);
678-
OTHER_LDFLAGS = (
679-
"$(inherited)",
680-
" ",
681-
);
693+
OTHER_LDFLAGS = "$(inherited) ";
682694
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
683695
SDKROOT = iphoneos;
684696
USE_HERMES = true;

0 commit comments

Comments
 (0)