AddImageFileWithPassword Method of the FRDocument Object
This method opens a password-protected image file and adds the pages corresponding to the opened file to a document.
This method may report events to the listeners attached to the IConnectionPointContainer interface of the FRDocument object.
Syntax
HRESULT AddImageFileWithPassword( BSTR ImageFileName, BSTR Password, IPrepareImageMode* PrepareMode, IIntsCollection* PageIndices );
Parameters
- ImageFileName
- [in] This variable contains the full path to the image file to be opened.
- Password
- [in] This variable contains a password for accessing images in PDF format.
- PrepareMode
- [in] This parameter refers to the PrepareImageMode object which specifies how an image will be preprocessed during opening.
- PageIndices
- [in] This parameter refers to the IntsCollection object which specifies the indices of the pages which have to be added to a document. This parameter is optional and may be 0, in which case all the pages of the opened file will be added to the document.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
- When opening a PDF Portfolio file using this method, its cover is always included in the output file.
See also
7/3/2024 8:50:10 AM