You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -59,7 +59,7 @@ Please install the following required packages:
59
59
60
60
Operating Environment Requirements:
61
61
62
-
* The iOS 10.0 or higher.
62
+
* The iOS 11.0 or higher.
63
63
* The Xcode 12.0 or newer for Objective-C or Swift.
64
64
65
65
### Integrate into a New Flutter APP
@@ -119,22 +119,48 @@ open android/app/build.gradle
119
119
}
120
120
```
121
121
122
-
6. Add the ComPDFKit dependency in `pubspec.yaml`
122
+
6. Open the project’s main activity class, `android/app/src/main/java/com/example/compdfkit/flutter/example/MainActivity.java`, Change the base `Activity` to extend `FlutterFragmentActivity`:
> **Note:**`FlutterFragmentActivity` is not an official part of the Flutter SDK. If you need to use `CPDFReaderWidget` in ComPDFKit for Flutter, you need to use this part of the code. You can skip this step if you don't need to use.
147
+
148
+
7. Add the ComPDFKit dependency in `pubspec.yaml`
123
149
124
150
```diff
125
151
dependencies:
126
152
flutter:
127
153
sdk: flutter
128
-
+ compdfkit_flutter: ^2.0.1
154
+
+ compdfkit_flutter: ^2.0.2
129
155
```
130
156
131
-
7. From the terminal app, run the following command to get all the packages:
157
+
8. From the terminal app, run the following command to get all the packages:
132
158
133
159
```bash
134
160
flutter pub get
135
161
```
136
162
137
-
8. Open `lib/main.dart` and replace the entire content with the following code. And fill in the license provided to you in the `ComPDFKit.init` method, this simple example will load a PDF document from the local device file system.
163
+
9. Open `lib/main.dart` and replace the entire content with the following code. And fill in the license provided to you in the `ComPDFKit.init` method, this simple example will load a PDF document from the local device file system.
138
164
139
165
```dart
140
166
import 'dart:io';
@@ -281,7 +307,7 @@ cd example
281
307
dependencies:
282
308
flutter:
283
309
sdk: flutter
284
-
+ compdfkit_flutter: ^2.0.1
310
+
+ compdfkit_flutter: ^2.0.2
285
311
```
286
312
287
313
4. From the terminal app, run the following command to get all the packages:
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.1.podspec'
314
-
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.1.podspec'
339
+
+ pod 'ComPDFKit_Tools', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit_tools/2.0.2.podspec'
340
+
+ pod 'ComPDFKit', podspec:'https://www.compdf.com/download/ios/cocoapods/xcframeworks/compdfkit/2.0.2.podspec'
315
341
316
342
end
317
343
```
@@ -527,8 +553,8 @@ target 'PDFView_RN' do
527
553
# Pods for testing
528
554
end
529
555
530
-
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.1'
531
-
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.1'
556
+
+ pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.2'
557
+
+ pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '2.0.2'
532
558
533
559
# Enables Flipper.
534
560
#
@@ -545,7 +571,7 @@ end
545
571
546
572
## UI Customization
547
573
548
-
In version**1.12.0**, we have expanded the options that can be defined in the [CPDFConfiguration](./lib/cpdf_configuration.dart) class. When using the `ComPDFKit.openDocument` method to open a PDF View, you can define this object to meet your product requirements. We will continue to enrich configuration options in the future to further enhance the flexibility of the product. Here are some examples of commonly used configuration options:
574
+
In the**1.12.0** version, we have expanded the options that can be defined in the [CPDFConfiguration](./lib/cpdf_configuration.dart) class. When using the `ComPDFKit.openDocument` method to open a PDF View or use `CPDFReaderWidget`, you can define this object to meet your product needs. We will continue to enrich the configuration options in the future to further enhance the flexibility of the product. The following are some examples of commonly used configuration options:
549
575
550
576
1. Set the initial display mode and the list of available modes. The following code shows enabling only the viewer mode and annotations mode:
551
577
@@ -585,7 +611,7 @@ var configuration = CPDFConfiguration(
0 commit comments