|
THotPDF.LoadFromFile
|
顶部 上一页 下一页 |
|
Loads an existing PDF file.
Delphi 语法: function LoadFromFile ( FileName: TFileName ): Integer; function LoadFromFile ( FileName: TFileName; const Password: AnsiString ): Integer;
C++ 语法: int __fastcall LoadFromFile ( AnsiString FileName ); int __fastcall LoadFromFile ( AnsiString FileName, System::AnsiString Password );
说明 Call LoadFromFile to load an existing PDF file. Function LoadFromFile returns count of pages in the loaded file. 对于 RC4-40 或 RC4-128 Standard encrypted PDFs,请使用 password 重载。HotPDF 会验证 user 或 owner password,在内存中解密已加载 strings 和 streams,清除已加载加密状态,并允许 SaveLoadedDocument 写入未加密副本。不受支持的 encryption revisions 会抛出异常 导入现有 PDF objects 时,HotPDF 会在内部存储 name values 前解码 ISO 32000-1 PDF name #XX escape sequences。/PANTONE#20216#20CVC、/lime#20Green 和 /The_Key_of_F#23_Minor 等名称在文档稍后复制或保存时,会按其预期字节值保留
See also: LoadFromStream, DecryptLoadedDocument |