THotPDF.OpenLoadedStreamSourceSlice Method
Opens an independent read-only view over the original encoded bytes of an unfiltered loaded stream without materialising the stream
اعلان
function OpenLoadedStreamSourceSlice(AStream: THPDFStreamObject; out Slice: TStream): boolean;
واحد
HPDFDoc
پارامترها
| نام | هدف |
|---|---|
AStream | Loaded stream object whose encoded source bytes are requested |
Slice | Receives a caller-owned independent read-only source slice |
مقدار بازگشتی
Returns True when the stream is unfiltered, source-backed, and a slice was opened
یادداشتهای استفاده
- The loaded stream must not have a Filter entry because the slice exposes encoded source bytes
- The returned stream owns its file handle and remains valid independently of later lazy-stream materialisation
- Pass the returned slice to
HPDFTransferStreamto write directly from its mapped file windows without an intermediate byte buffer - The caller must free the returned stream