SaveToStream

Gerenciamento de documentos

Descrição

Semelhante à função SaveToFile, mas permite gravar o documento PDF em um objeto stream

Sintaxe

Delphi

Function TPDFlib.SaveToStream(OutStream: TStream): Integer;

Parâmetros

OutStreamThe stream object to write the document to

Valores retornados

0The document could not be saved
1The document was saved to the stream successfully

Observações

OutStream may be a write-only non-seekable stream such as a network response body because the library tracks PDF offsets internally and emits the completed byte sequence forwards only

Large RC4, AES-CBC, and AES-GCM encrypted streams are transformed directly into OutStream through bounded chunks while their in-memory source bytes remain unchanged, so repeated saves do not require full ciphertext and plaintext restoration copies