THotPDF.AppendLoadedStream Method
Appends AnsiString data to the end of the specified stream object, used for incrementally building the byte content of content streams, attachments, or other stream resources
Declaration
procedure AppendLoadedStream(Strm: THPDFStreamObject; const AData: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Strm | The destination stream object, which should be one obtained via NewIndirectStream or ResolveLoadedStream |
AData | The raw byte data to append to the end of the stream; for binary content, the caller needs to ensure correct encoding |
Usage notes
This member returns no value
Usage notes
- Use this API in the document import and output workflow before the affected page, resource, field or catalogue object is finalised
- Calling this method multiple times allows data to be appended in segments; all appended operations are finally written to the output stream when the document is saved
- If the stream object has a compression filter applied, the appended data will be automatically compressed during the saving stage; the caller only needs to pass in the original uncompressed data