Skip to main content
PDFExportModeEnum enumeration constants are used to set the mode of export into PDF format.
typedef enum {
 PEM_TextWithPictures,
 PEM_TextOnImage,
 PEM_ImageOnText,
 PEM_ImageOnly,
 PEM_TextOnly
} PDFExportModeEnum;

Elements

NameDescription
PEM\_ImageOnlyThe entire image is saved as a picture. The recognized text and layout information are not used in this mode, so the recognition stage may be skipped. <Note> If you export to PDF format with MRC compression in PEM\_ImageOnly mode, it is recommended to set IPageAnalysisParams::CollectPdfExportData to TRUE. </Note>
PEM\_ImageOnTextThe image without text is saved as a picture. The recognized text is saved as text and is put under the image. This option is useful if you export your text to document archives: the full page layout is retained and the full-text search is available if you save in this mode.
PEM\_TextOnImageThe image without text is saved as a picture. The recognized text is saved as text and is put over the image.
PEM\_TextOnlyThe recognized text is saved as text. Pictures are not saved. If this mode is used, the values of the BwPictureFormats, ColorPictureFormats, and GrayPictureFormats properties of the PDFPictureCompressionParams subobject are ignored.
PEM\_TextWithPicturesThe recognized text is saved as text, and the pictures are saved as pictures.

Used in

IPDFExportParams::TextExportMode