VpeSetPDFALevel

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

VpeSetPDFALevel

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

VPE supports the export to the PDF/A format for long-term archival, according to ISO standard ISO 19005-1:2005, PDF/A-1b.

void VpeSetPDFALevel(

VpeHandle hDoc,

long level

)

VpeHandle hDoc

Document Handle

long level

possible values are:

Constant Name

Value

Comment

VPE_PDF_A_LEVEL_NONE

0

No PDF/A document is created. [default]

VPE_PDF_A_LEVEL_1B

1

A PDF/A-1b document shall be created.

Default:

VPE_PDF_A_LEVEL_NONE

Remarks:

The PDF/A standard enforces several other document properties. When you set this property to VPE_PDF_A_LEVEL_1B, VPE sets the following properties automatically:

 

 PDFVersion = VPE_PDF_ACROBAT_5

 FastWebView = false

 EmbedAllFonts = true

 SubsetAllFonts = true

 Encryption = DOC_ENCRYPT_NONE

 

By default, font subsetting is enabled. If you disable it, and you are using symbolic fonts, like Windings or Webdings, you must enable subsetting at least for those fonts (see VpeSetFontControl()), because the PDF/A standard requires that symbolic fonts only contain one CMAP table. But the fonts come in regular with multiple CMAP tables. The font subsetter of VPE strips the unwanted CMAP tables.

 

Furthermore you need to add a Color Profile to the PDF document, see the method VpeAddColorProfile().

Example:

VpeSetPDFALevel(hDoc, VPE_PDF_A_LEVEL_1B);

VpeAddColorProfile(hDoc,

 "GTS_PDFA1",

 "sRGB_IEC61966-2-1",

 "Custom",

 "http://www.color.org",

 "sRGB_IEC61966-2-1",

 "sRGB_IEC61966-2-1");

VpeWriteDoc(hDoc, "test.pdf");