- Set the Scenario property at first. This property optimizes export for some parameters: quality, size of the file, or/and speed of export. When you select the value of this property, the properties of the PDFExportParams object and its subobjects are set to the values suitable for the selected task.
- After that, you may customize the additional parameters so that they suit your task the best. See Tuning Export Parameters for details.
Properties
Name | Type | Description |
|---|---|---|
Application | Returns the Engine object. | |
Export scenario | ||
Specifies the scenario of export to PDF (PDF/A) format, which optimizes export for some parameters: quality, size of the file, and/or speed of export. If you change the value of this property, the FontEmbeddingMode , TextAndBackgroundColorMode , WriteXmpMetadata , WriteTaggedPDF properties of the PDFExportFeatures subobject and ColorPictureFormats , GrayPictureFormats , BwPictureFormats properties of the PDFPictureCompressionParams subobject are set to their default values. The default value is PES_Balanced. Please note that depending on the chosen scenario some inner export settings can change. This will have influence on the value of the next PDFExportParams properties:
| ||
Format settings | ||
Specifies the format of export: PDF, PDF/A-1a, PDF/A-1b, PDF/A-2a, PDF/A-2b, PDF/A-2u, PDF/A-3a, PDF/A-3b, or PDF/A-3u. The value of this property affects the settings that can be used during export. If the value of this property is not PCM_None (export to PDF/A format is performed):
If these requirements are not met, an error is returned. By default, the value is PCM_None, which means that export to PDF should be performed. | ||
Specifies the mode of export of recognized text into PDF (PDF/A) format. It may be: text and pictures only, text over the page image, text under the page image, page image only, text only. If this property is PEM_TextOnly, the values of the BwPictureFormats , ColorPictureFormats , and GrayPictureFormats properties of the PDFPictureCompressionParams subobject are ignored. This property is PEM_ImageOnText by default. | ||
Specifies the mode of using Mixed Raster Content for output PDF (PDF/A) file. The value of this property is ignored during export to black-and-white PDF. By default, the value of this property is MRC_Auto. | ||
Specifies the additional export parameters: encryption information, PDF version, etc. | ||
Color settings | ||
Allows you to keep color of the output PDF (PDF/A) file or save it in gray or black-and-white. It may be useful to set this property to PCM_ForceToGray for color documents, if you do not need to save their colors and want to reduce the size of output files. If the CorrectColorDepth property is set to TRUE, ABBYY FineReader Engine can additionally correct color depth of the document. For example, if you set Colority to PCM_ForceToGray and CorrectColorDepth is TRUE, FineReader Engine will change the color images to gray, then will detect color depth of gray images and, if necessary, will change some images to black-and-white. The default value for this property is PCM_KeepColority. | ||
This property set to TRUE enables ABBYY FineReader Engine to correct color depth of the document. If you set the property to FALSE, ABBYY FineReader Engine will save colors of the document as defined in the Colority property. By default, the value of this property is TRUE. | ||
Picture settings | ||
Returns the collection of the user-defined images attached to the output PDF file. To add an image to this collection, use the AddNew method of the PDFPictures object and set the image position on a page by the methods of the PDFPicture object. | ||
Specifies the parameters of writing images to PDF (PDF/A) files, including MRC parameters. These parameters allow you to reset the parameters defined in the chosen export scenario. | ||
Specifies the picture resolution in dpi. The ResolutionType property specifies how the value of this property must be interpreted. The specified resolution cannot be higher than the original resolution. The default value for the property is 300 dpi. | ||
Defines how to use the value of the picture resolution specified in the Resolution property. It may be used:
By default, the value of this property is PRT_Desired. | ||
Methods
| Name | Description |
|---|---|
| CopyFrom | Initializes properties of the current object with values of similar properties of another object. |
| LoadFromFile | Restores the object contents from a file on disk. |
| LoadFromMemory <Note> : Windows only. </Note> | Restores the object contents from the global memory. |
| SaveToFile | Saves the object contents into a file on disk. |
| SaveToMemory <Note> : Windows only. </Note> | Saves the object contents into the global memory. |
Related objects
Object Diagram
Output parameter
This object is the output parameter of the CreatePDFExportParams method of the Engine object.Input parameter
This object is passed as the input parameter to the following methods:- Export, ExportPages, ExportToMemory methods of the FRDocument object
- Export method of the FRPage object
- RecognizeImageFile method of the Engine object
- OnExportPages method of the IDocumentViewerEvents interface for Windows Visual Components
- OnSendToPages method of the IDocumentViewerEvents interface for Windows Visual Components
Samples
C# code
C# code
- Linux: Hello, CommandLineInterface
- macOS: TiffToRtf
- Windows: Hello, CommandLineInterface; and demo tools: BatchProcessingRecognition, MultiProcessingRecognition, PDFExportProfiles
