Skip to content

Commit 0f99d35

Browse files
committed
add PDF/A part
1 parent a36b7ef commit 0f99d35

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

_articles/extended-usage/pdf-processing.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,26 @@ DWTObject.Addon.PDF.SetReaderOptions({
131131

132132
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.
133133

134+
## PDF/A
134135

136+
PDF/A is a version of PDF specialized for use in the archiving and long-term preservation of electronic documents. For example, it does not allow using external fonts, which will change the appearance if opening it on another device.
137+
138+
Starting from Web TWAIN v19.3, it can save PDF as PDF/A-1b or PDF/A-2b by specifying `pdfaVersion` in [`PDFWSettings`](/_articles/info/api/interfaces.md#pdfwsettings).
139+
140+
Here is the code to do this:
141+
142+
```js
143+
DWTObject.Addon.PDF.Write.Setup({
144+
pdfaVersion:"pdf/a-1b"
145+
});
146+
DWTObject.IfShowFileDialog = true;
147+
DWTObject.SaveAllAsPDF(' ', function() {}, function() {})
148+
```
149+
150+
Both PDF/A-1b and PDF/A-2b are basic conformation level standards. PDF/A-1b is based on PDF version 1.4 and PDF/A-2b is based on PDF version 1.7. PDF/A-2b has the following new features compared to PDF/A-1b:
151+
152+
* JPEG 2000 image compression.
153+
* support for transparency effects and layers.
154+
* embedding of OpenType fonts.
155+
* provisions for digital signatures in accordance with the PDF Advanced Electronic Signatures – PAdES standard.
156+
* the option of embedding PDF/A files to facilitate archiving of sets of documents with a single file.

0 commit comments

Comments
 (0)