www.ocr4linux.com / Documentation Home /Step 3: PDF MRC keys
Note: If you would like to tune PDF Mixed Raster Content parameters manually, please use the following order of MRC keys in your CLI command:
Key | Parameters | Default | Description |
---|---|---|---|
-pmrc |
--pdfMrcMRCEnabled |
||
no |
|
This key specifies whether tuning Mixed Raster Content (MRC) parameters is enabled. By default, MRC is disabled. |
|
-pmbc |
--pdfMrcBackgroundColor |
||
color in RGB format or original string parameter |
0xffffff |
This key specifies the background color. You can use -pmbc 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). |
|
-pmbds |
--pdfMrcBackgroundDownSampling |
||
background down sampling rate |
4 |
This key specifies the down sampling rate of the background. Only a positive rate makes sense. |
|
-pmbf |
--pdfMrcBackgroundFormat |
||
JpegColor |
JpegColor |
This key specifies the background format. |
|
-pmbq |
--pdfMrcBackgroundQuality |
||
background JPEG quality in percent |
5 |
This key specifies the value of JPEG compression for background color in percentage points. |
|
-pmcmds |
--pdfMrcColorMaskDownSampling |
||
color mask down sampling rate | 4 |
This key specifies the down sampling rate of the color mask. Only a positive rate makes sense. |
|
-pmcmf |
--pdfMrcColorMaskFormat |
||
JpegColor |
ZipColor |
This key specifies the color mask format. |
|
-pmcmq |
--pdfMrcColorMaskQuality |
||
color mask JPEG quality in percent |
30 |
This key specifies the color mask JPEG quality in percentage points. The bigger the value, the better the quality. |
|
-pmcl |
--pdfMrcCompressionLevel |
||
LowCompression |
AvgCompression |
This key specifies the MRC compression level. |
|
-pmnkb |
--pdfMrcDoNotKeepBackground |
||
no |
|
This key specifies not to keep the original background during export to PDF. If -pmnkb key is not used, the original background is retained. |
|
-pmnmt |
--pdfMrcNotMonochromeText |
||
no |
|
When this key is not used, the recognized text is monochrome. Also if you do not use -pmnmt key, you can specify the text color using -pmtc key. |
|
-pmpib |
--pdfMrcPicturesInBackground |
||
no |
|
This key specifies whether pictures should be considered as parts of the background. If you use -pmpib 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. |
|
-pmtc |
--pdfMrcTextColor |
||
color in RGB format |
0x000000 |
This key specifies the text color in monochrome mode, i.e., only when -pmnmt key is not used. By default, the text color is black or RGB(0,0,0). |
|
-pmtmds |
--pdfMrcTextMaskDownSampling |
||
text mask down sampling rate |
1 |
This key specifies the down sampling rate of the text mask. Only a positive rate makes sense. |
|
-pmtmf |
--pdfMrcTextMaskFormat |
||
CCITT4 |
JBIG2 |
This key specifies the text mask compression algorithm. |
|
-pmtmq |
--pdfMrcTextMaskQuality |
||
text mask JPEG quality in percent |
75 |
This key specifies the text mask quality in percentage points. The bigger the value, the better the quality. |
Note. Full keys are marked by italic.