Skip to content

Commit a36b7ef

Browse files
committed
add append pages to the PDF guide
1 parent 2dad770 commit a36b7ef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_articles/extended-usage/pdf-processing.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,18 @@ DWTObject.SaveAllAsPDF(' ', function() {}, function() {})
117117
When you set a password prior to generating a PDF file, that password becomes necessary each time you attempt to open the file thereafter. The password does not restrict the usage permissions of the PDF. The encryption algorithm utilized is AES256, ensuring robust security measures.
118118

119119
Note: Only the core module license is required to use this method.
120+
121+
## Append Pages to a PDF
122+
123+
If you need to append a scanned document to a PDF file and keep the rest pages unmodified. You can use the following code to read a PDF file by setting the `preserveUnmodifiedOnSave` property to `true`.
124+
125+
```js
126+
DWTObject.Addon.PDF.SetReaderOptions({
127+
convertMode: Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL,
128+
preserveUnmodifiedOnSave: true, //only available for v19.0+
129+
});
130+
```
131+
132+
Then, it will keep the unmodified pages in the PDF file instead of converting them to images when saving a new PDF file with the scanned documents.
133+
134+

0 commit comments

Comments
 (0)