Skip to content

Commit 48fafd0

Browse files
committed
v3.0.1
1 parent d0456d8 commit 48fafd0

6 files changed

Lines changed: 6 additions & 13 deletions

File tree

20 KB
Binary file not shown.
8.52 KB
Binary file not shown.

PDFViewer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ dependencies {
5757
implementation 'androidx.appcompat:appcompat:1.6.1'
5858
implementation 'com.google.android.material:material:1.8.0'
5959
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
60-
// api project(path: ':ComPDFKit_Tools')
60+
api project(path: ':ComPDFKit_Tools')
6161

6262
// or
63-
implementation ('com.compdf:compdfkit-tools:3.0.0')
63+
// implementation ('com.compdf:compdfkit-tools:3.0.0')
6464
}
6565
configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }

PDFViewer/src/main/java/com/compdfkit/pdfviewer/home/samples/WatermarkSamplesImpl.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import androidx.fragment.app.Fragment;
1616

17-
import com.compdfkit.core.common.CPDFDocumentException;
1817
import com.compdfkit.core.document.CPDFDocument;
1918
import com.compdfkit.core.watermark.CPDFWatermark;
2019
import com.compdfkit.pdfviewer.R;
@@ -126,13 +125,7 @@ private void watermark(String filePath, Uri uri) {
126125
dir1,
127126
outputFileName,
128127
false,
129-
tempPath -> {
130-
try {
131-
return document.saveAs(tempPath, false);
132-
} catch (CPDFDocumentException e) {
133-
throw new RuntimeException(e);
134-
}
135-
});
128+
tempPath -> document.saveAs(tempPath, false));
136129
result = saveResult.isSuccess();
137130
document.close();
138131
if (result) {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ This section will help you quickly get started with ComPDF SDK to make an Androi
178178
Edit it and add the complete `ComPDF SDK` dependency:
179179

180180
dependencies {
181-
implementation 'com.compdf:compdfkit:2.6.9'
182-
implementation 'com.compdf:compdfkit-ui:2.6.9'
181+
implementation 'com.compdf:compdfkit:3.0.1'
182+
implementation 'com.compdf:compdfkit-ui:3.0.1'
183183
}
184184

185185
3. Apply for read and write permissions in `AndroidManifest.xml`:

config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ext {
77
VERSIONNAME: "3.0.0"
88
]
99
sdk = [
10-
COMPDFKIT_SDK_VERSION : "3.0.0",
10+
COMPDFKIT_SDK_VERSION : "3.0.1",
1111
COMPDFKIT_SDK_BUILD_TAG : "build_dev_03226198_202605141000"
1212
]
1313
}

0 commit comments

Comments
 (0)