- In Linux or macOS, advise the object to the FRDocument object by a call to the AdviseFREngineObject global function.
- In Windows, set up the connection between the object and the events source implemented in the FRDocument object by standard COM means.
Properties
Name | Type | Description |
|---|---|---|
Application | Returns the Engine object. | |
Common attributes | ||
__int64, read-only | Returns the size of the memory allocated for the IFRDocument object. The value of this property is measured in bytes. | |
Returns the collection of pages of the document. | ||
Returns the text of the document in a special “plain text” format. | ||
Document languages | ||
BSTR, read-only | Returns the main language of the recognized document. The property contains the internal name of the first language in the collection of detected languages (DetectedLanguages property). This property has a meaningful value only if recognition was performed with the automatic language detection on (see the IRecognizerParams::LanguageDetectionMode property for details); otherwise, it is an empty string. | |
Provides access to the collection of recognition languages detected in the recognized document. Languages in the collection are sorted by the frequency of occurrence: from the most frequently occurred to the least. This property has a meaningful value only if recognition was performed with the automatic language detection on (see the IRecognizerParams::LanguageDetectionMode property for details). The list of languages is updated only after recognition, i.e., if you edit the layout of the document manually, the collection remains the same. | ||
Document structure | ||
VARIANT_BOOL, read-only | Specifies whether the logical structure of the document is out of date. If this property is TRUE, you should perform document synthesis before export. Otherwise, an error will occur during export. For Visual Components, this property is useful when you work with Visual Components. The logical structure of a document becomes invalid if a user changes the order or the number of pages in the document via GUI of Visual Components. If export of such document is performed using commands available in Visual Components, Visual Components synthesize the document automatically. But if you use FineReader Engine API methods for export, you are responsible for performing document synthesis before export. It is worth noting that not only document structure, but also page structure can become invalid. Therefore before export you should also check that all pages in the document have valid page structure (see the IFRPage::PageStructureOutOfDate property). | |
Business cards | ||
Provides access to the collection of business cards detected in the document. | ||
Attachments and metadata | ||
Contains information about the author, keywords, subject, and title of the document and stores the document information dictionary. | ||
Returns the collection of attachments of the document. They are extracted from the input PDF document during opening, or you can add your own files to be attached to the output PDF file during export. To attach all the files of this collection to the output PDF file, set the IPDFExportFeatures::WriteSourceAttachments property to TRUE. | ||
Returns the collection of the names of fonts which have been extracted out of the input PDF file resources. If the document has been created by opening a file in other format, or from a PDF file containing no fonts, an empty collection will be returned. | ||
VARIANT_BOOL, read-only | Indicates whether at least one of the source files was a digitally signed PDF. | |
Temporary files and flushing policy | ||
Specifies if the ImageDocument and the Layout objects for corresponding pages should be unloaded and saved to disk if there are no references to these objects. For Linux, when this property value is set to PFP_KeepInMemory, the image documents and layouts for unused pages are not saved to disk. This property is PFP_Auto by default. For macOS, this property value is ignored. The image documents and layouts for unused pages are always unloaded on disk. For Windows: To unload and save to disk the ImageDocument and the Layout objects for separate pages of the document, use the IFRPage::Flush method for the corresponding pages. This property is PFP_Auto by default. | ||
Specifies the path to the folder where the temporary image files in the ABBYY FineReader Engine internal format are stored. By default, the value of this property is “%TEMP%\ABBYY FineReader Engine 12”. | ||
Methods
Related objects
Object Diagram
Output parameter
This object is the output parameter of the CreateFRDocument and CreateFRDocumentFromImage methods of the Engine object.Input parameter
This object is passed as an input parameter to the following methods:- CreateObjectFromDocument method of the ClassificationEngine object
- CompareDocuments method of the Comparator object
- OnDocumentChanged method of the IDocumentViewerEvents interface (for Visual Components)
- OnDocumentChanged method of the ITextValidatorEvents interface (for Visual Components)
Related Visual Components
Samples
C# code
C# code
C++ (COM) code
C++ (COM) code
