|
THotPDF.LoadFromStream
|
Top Previous Next |
|
스트림에서 기존 PDF 파일을 로드합니다.
Delphi syntax: function LoadFromStream ( DocStream: TStream ): Integer; function LoadFromStream ( DocStream: TStream; const Password: AnsiString ): Integer; function LoadFromStream ( DocStream: TStream; AutoDecrypt: Boolean ): Integer;
C++ syntax: int __fastcall LoadFromStream ( Classes::TStream* DocStream ); int __fastcall LoadFromStream ( Classes::TStream* DocStream, System::AnsiString Password ); int __fastcall LoadFromStream ( Classes::TStream* DocStream, bool AutoDecrypt );
Description 스트림에서 기존 PDF 문서를 로드하려면 LoadFromStream을 호출합니다. LoadFromStream 함수는 로드된 문서의 페이지 수를 반환합니다. 지원되는 RC4 및 AES Standard 암호화 PDF에는 password 오버로드를 사용하세요. HotPDF는 user 또는 owner 패스워드를 검증하고, seekable 스트림의 bounded trailer, xref, document-ID, encryption dictionary 범위에서 파일 키를 복구한 뒤, 로드된 문자열과 스트림을 메모리에서 복호화하고 로드된 암호화 상태를 지웁니다. 그러면
기존 PDF 객체를 가져올 때 HotPDF는 name 값을 내부에 저장하기 전에 ISO 32000-1의 PDF name #XX 이스케이프 시퀀스를 디코딩합니다. /PANTONE#20216#20CVC, /lime#20Green, /The_Key_of_F#23_Minor 같은 name도 문서를 나중에 복사하거나 저장할 때 원래 의도한 바이트 값 그대로 유지됩니다
See also: LoadFromFile, LoadFromRandomAccessSource, DecryptLoadedDocument |