LoadFromFile Method of the Layout Object
This method restores the layout from a file on disk, where it should have previously been saved by the SaveToFile method. It loads only the layout blocks that fit into the page borders. The blocks that don't fit are removed with a warning. Listen to IFRPageEvents to get the warning.
Syntax
C++
HRESULT LoadFromFile( BSTR Path );
C#
void LoadFromFile( string Path );
Visual Basic .NET
Sub LoadFromFile(Path As String)
Parameters
- Path
- [in] This parameter of the type BSTR specifies the path to the file on disk where the layout is stored. If a file specified by this path was not obtained as a result of a call to the SaveToFile method of a Layout object, some specific error code is returned.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
Note that in the case when an object data is read by a functionally limited ABBYY FineReader Engine version, while it was saved by a version with a wider functional set, object properties that cannot be changed in the limited version, are restored to default values.
The following objects provide this method:
- Image-related objects:
- ImageProcessingParams
- PrepareImageMode
- ImageModification
- JpegExtendedParams
- CoordinatesConverter
- TiffExtendedParams
- PngExtendedParams
- Language-related objects:
- Export parameters:
- HTMLExportParams
- PPTExportParams
- RTFExportParams
- TextExportParams
- XLExportParams
- XMLExportParams
- AltoExportParams
- EBookExportParams
- PDFExportParams
- XPSExportParams
- Processing parameters:
- PageProcessingParams
- PagePreprocessingParams
- PageAnalysisParams
- TableAnalysisParams
- BarcodeParams
- ObjectsExtractionParams
- OrientationDetectionParams
- SortingBlocksParams
- RecognizerParams
- SynthesisParamsForPage
- SynthesisParamsForDocument
- DocumentStructureDetectionParams
- FontFormattingDetectionParams
- DocumentProcessingParams
- EmptyPageDetectionParams
- Layout
- CheckmarkTrainingData
- ParagraphParams
- Region
See also
3/24/2023 8:51:52 AM