SaveToStream

Управление документами

Описание

Похоже на SaveToFile, но записывает PDF-документ в объект-поток

Синтаксис

Delphi

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

Параметры

OutStreamОбъект-поток для записи документа

Возвращаемые значения

0Документ не удалось сохранить
1Документ успешно сохранён в поток

Примечания

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