PDF/A result log

Start page  Previous page  Next page

 

In addition to a file in conformance with PDF/A, it is also possible for n2pdf to create a result log for the conversion performed as well. This requires an installation of webPDF because n2pdf accesses webPDF functions for this purpose.

 

There are two versions of the result logging:

 

1) A report in which all errors which occur are logged, or

2) to confirm a successful conversion.

 

They can be enabled individually or in combination.

 

All the settings are made using the function N2PDFSetOption and must be done before the command N2PDFProcess.

 

Below you will find a list of all possible settings that can be used in the parameter <OptionID> with N2PDFSetOption. The respective setting values are made using the parameter <OptionStr>. The last parameter is unused and therefore always set as "".

 

 

N2PDFOPTION_PDFA_REPORT_ON_SUCCESS

This parameter is used to specify whether n2pdf should create a result log if the conversion has been completed error-free.

 

N2PDFVALUE_TRUE

Creation of a report

N2PDFVALUE_FALSE

No report created

 

N2PDFOPTION_PDFA_REPORT_ON_ERROR

This parameter is used to specify whether n2pdf should create a result log if the conversion has been completed with errors.

 

N2PDFVALUE_TRUE

Creation of a report

N2PDFVALUE_FALSE

No report created

 

N2PDFOPTION_PDFA_REPORT_FILENAME

This parameter is used to specify under which directory and which filename the result log should be created.

 

 

Example:

‘Activation of the PDF-A-2B mode

Call N2PDFSetOption ( JobID, N2PDFOPTION_PDF_PDFA_MODE, N2PDFVALUE_PDFA_LEVEL_2B, "" )

 

‘Creation of the result log for a successful conversion

Call N2PDFSetOption ( JobID, N2PDFOPTION_PDFA_REPORT_ON_SUCCESS, N2PDFVALUE_TRUE, "" )

 

‘Creation of the result log in the case of an error

Call N2PDFSetOption ( JobID, N2PDFOPTION_PDFA_REPORT_ON_ERROR, N2PDFVALUE_TRUE, "" )

 

'Definition of the filename

Call N2PDFSetOption ( JobID, N2PDFOPTION_PDFA_REPORT_FILENAME, "c:\pdfa.xml", "" )

 

112

To be able to use the PDF/A result logging feature, you must have webPDF 4.0 or higher.