Skip to main content
Version: 9.0

PDF/A conversion

The PDF/A conversion is carried out by the "Pdfa" web service.

API {REST}: /pdfa

To carry out a PDF/A conversion, transfer the PDF document during the web service call. In the parameters for the web service call, select convert in order to enable the conversion and use the level option to choose the target format for the PDF/A conversion.

If the conversion is successful according to PDF/A, the web service returns the modified PDF file as the result (in the return value).

{  
 "pdfa": {
   "convert": {
     "autoTagging": false,
     "errorCorrection": {
       "enabled": false
     },
     "errorReport": "message",
     "imageQuality": 75,
     "level": "1a",
     "successReport": "none"
   }
 }
}

If errors occurred during the conversion, then an exception is triggered on the web service call. The exception then contains an error code (errorCode) and a text message (message) about the error.

You can activate the XML report for the PDF/A conversion in order to get more details about the conversion, regardless of whether for a successful or a faulty execution. The report provides information about what kind of problems are present in the source document and which ones are still present after a PDF/A conversion has been carried out.

The results of the XML report generation operation can be checked with the following parameters:

  • errorReport
  • successReport
tip

Further information about the options can be found in the description of the Web Service Parameters.

A PDF/A conversion consists of three steps:

  • An analysis of the problems in the PDF file (see the “analysis” node in the XML report).
  • Conversion of the file to correct the problems, if this is possible
  • Subsequent analysis (see the “post-analysis” node in the XML report) to check whether all of the problems were corrected.

It is not always possible to correct all of the problems in a PDF file after the fact when a PDF/A conversion has been carried out after the source PDF document has been created. Some of the requirements of the PDF/A standard can only be implemented if they were already considered during the creation of the original PDF document. This applies in particular to conformance level "a" in the PDF/A standard.

Furthermore, it is recommended that the newer PDF/A-2 or PDF/A-3 versions be used instead of the “old" PDF/A-1 standard. These standards are enhancements which have resulted from the practical usage of PDF/A documents. These newer versions of the standard tend to better reflect the practical significance of PDF/A documents. For example, in the current PDF/A-3 standard, it is possible to embed documents with any number of formats, which was not allowed at all in the PDF/A-1 standard.

Fonts

Make sure that the fonts on which the PDF documents you want to convert to PDF/A format are based are installed. If the fonts are not present, the PDF/A conversion may be aborted. All fonts must always be embedded during PDF/A conversion.

If you want to convert third-party formats (e.g. Word documents) to PDF/A, do not perform font embedding when converting via the "Converter" web service. Leave the embedding of the fonts to the "Pdfa" web service.

API {REST}: /converter - Set "embedFonts" to "false"

If fonts are not present and cannot be embedded, the following errors will occur in the XML report of the PDF/A converter:

"output.pdf", 9, 20, 0x00418704, "The font ShinGo must be embedded.", 1

XML report for conversions in the portal

The "Pdfa" web service is integrated in the PDF portal. If you convert a PDF document there according to PDF/A and the conversion fails, a corresponding XML report will be displayed. This report is available as an appendix to the selected file and can be downloaded in the customary manner.