Skip to content

Commit 5c4b6c4

Browse files
authored
Merge pull request #443 from dynamsoft-docs/rebeccakak-patch-11
Update Addon_PDF.md
2 parents 8ed00f1 + ddbf71f commit 5c4b6c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

info/api/Addon_PDF.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ interface PDFWSettings {
293293
author: string;
294294
/**
295295
* Specify the compression type.
296+
* When set to PDF_AUTO, Dynamic Web TWAIN will automatically choose the suitable compression type for each image.
297+
- For 1 Bit images, if the PDF version is over 1.4, use JBIG2 encoding, otherwise, use FAX4 (CCITT Group 4 Fax).
298+
- For 8 Bit images, if the image is grayscale, use JPEG encoding, otherwise, use LZW (Lempel-Ziv-Welch).
299+
- For 24 and 32 Bit images, use JPEG encoding.
296300
*/
297301
compression: Dynamsoft.DWT.EnumDWT_PDFCompressionType | number;
298302
/**

0 commit comments

Comments
 (0)