Step 3: Export to PDF/A MRC


PDF/A is new in CLI OCR Version 9.0, so the export format is not available in V8.

PDF/A Standard Keys – PDF/A MRC Keys

Note: If you would like to tune PDFA Mixed Raster Content parameters manually, please use the following order of MRC keys in your CLI command:

  • if needed, specify MRC compression level using -pamcl key
  • specify other MRC keys.

--pdfaMrcMRCEnabled

  • This key specifies whether tuning Mixed Raster Content (MRC) parameters is enabled. By default, MRC is disabled.
Key Parameters Default
-pamrc no
–pdfaMrcMRCEnabled

--pdfaMrcBackgroundColor

  • This key specifies the background color. You can use -pambc key with original parameter. In this case, the background color will be detected automatically based on the original background. By default the background color is white or RGB(255,255,255).
Key Parameters Default
-pambc lor in RGB format or original string parameter 0xffffff
–pdfaMrcBackgroundColor

--pdfaMrcBackgroundDownSampling

  • This key specifies the down sampling rate of the background. Only a positive rate makes sense.
Key Parameters Default
-pambds background down sampling rate 4
–pdfaMrcBackgroundDownSampling

--pdfaMrcBackgroundFormat

  • This key specifies the background format.
Key Parameters Default
-pambf JpegColor, JpegGray
(see descriptions in ExportPictureFormatEnum)
JpegColor
–pdfaMrcBackgroundFormat

--pdfaMrcBackgroundQuality

  • This key specifies the value of JPEG compression for background color in percentage points.
Key Parameters Default
-pambq background JPEG quality in percent 5
–pdfaMrcBackgroundQuality

--pdfaMrcColorMaskDownSampling

  • This key specifies the down sampling rate of the color mask. Only a positive rate makes sense.
Key Parameters Default
-pamcmds color mask down sampling rate 4
–pdfaMrcColorMaskDownSampling

--pdfaMrcColorMaskFormat

  • This key specifies the color mask format.
Key Parameters Default
-pamcmf JpegColor
JpegGray
ZipColor
(see descriptions in ExportPictureFormatEnum)
ZipColor
–pdfaMrcColorMaskFormat

--pdfaMrcColorMaskQuality

  • This key specifies the color mask JPEG quality in percentage points. The bigger the value, the better the quality.
Key Parameters Default
-pamcmq color mask JPEG quality in percent 30
–pdfaMrcColorMaskQuality

--pdfaMrcCompressionLevel

  • This key specifies the MRC compression level.
Key Parameters Default
-pamcl LowCompression
AvgCompression
MaxCompression
Custom
(see descriptions in PDFMRCCompressionLevelEnum)
AvgCompression
–pdfaMrcCompressionLevel

--pdfaMrcDoNotKeepBackground

  • This key specifies not to keep the original background during export to PDF/A. If -pamnkb key is not used, the original background is retained.
Key Parameters Default
-pamnkb no
–pdfaMrcDoNotKeepBackground

--pdfaMrcNotMonochromeText

  • When this key is not used, the recognized text is monochrome. Also if you do not use -pamnmt key, you can specify the text color using -pamtc key.
Key Parameters Default
-pamnmt no
–pdfaMrcNotMonochromeText

--pdfaMrcPicturesInBackground

  • This key specifies whether pictures should be considered as parts of the background. If you use -pampib key, the background compression options are used for the pictures. When you do not use this key, pictures are not considered as parts of the background.
Key Parameters Default
-pampib no
–pdfaMrcPicturesInBackground

--pdfaMrcTextColor

  • This key specifies the text color in monochrome mode, i.e., only when -pamnmt key is not used. By default, the text color is black or RGB(0,0,0).
Key Parameters Default
-pamtc color in RGB format 0x000000
–pdfaMrcTextColor

--pdfaMrcTextMaskDownSampling

  • This key specifies the down sampling rate of the text mask. Only a positive rate makes sense.
Key Parameters Default
-pamtmds text mask down sampling rate
–pdfaMrcTextMaskDownSampling

--pdfaMrcTextMaskFormat

  • This key specifies the text mask compression algorithm.
Key Parameters Default
-pamtmf CCITT4
JBIG2
(see descriptions in ExportPictureFormatEnum)
JBIG2
–pdfaMrcTextMaskFormat

--pdfaMrcTextMaskQuality

  • This key specifies the text mask quality in percentage points. The bigger the value, the better the quality.
Key Parameters Default
-pamtmq text mask JPEG quality in percent 75
–pdfaMrcTextMaskQuality