THotPDF.LoadFromStream

THotPDF

 

맨 위  이전  다음

Loads an existing PDF file from stream.

 

Delphi 구문:

function LoadFromStream ( DocStream: TStream ): Integer;

function LoadFromStream ( DocStream: TStream; const Password: AnsiString ): Integer;

 

C++ 구문:

int __fastcall LoadFromStream ( Classes::TStream* DocStream );

int __fastcall LoadFromStream ( Classes::TStream* DocStream, System::AnsiString Password );

 

설명

Stream에서 기존 PDF document를 로드하려면 LoadFromStream을 호출하십시오. LoadFromStream function은 loaded document의 page count를 반환합니다

RC4-40 또는 RC4-128 Standard encrypted PDF에는 password overload를 사용하십시오. HotPDF는 user 또는 owner password를 validate하고, loaded string 및 stream을 memory에서 decrypt하며, loaded encryption state를 clear하고, SaveLoadedDocument가 unencrypted copy를 쓰도록 합니다. Unsupported encryption revision은 exception을 raise합니다

기존 PDF object를 import할 때 HotPDF는 name value를 내부에 저장하기 전에 ISO 32000-1 PDF name #XX escape sequence를 decode합니다. /PANTONE#20216#20CVC, /lime#20Green, /The_Key_of_F#23_Minor 같은 name은 이후 document가 copied 또는 saved될 때 의도된 byte value로 보존됩니다

 

 

 

참조:LoadFromFile, DecryptLoadedDocument