PDF4Java Reference Documentation
com.o2sol.pdf4java.flowdocument Package / PDFFlowDocument Class / save Method
Destination stream.
Security handler for encrypting the saved file.
When set to true, the structure of the PDF Objects is also compressed. Supported when PDF version >= 1.5
Collapse All Expand All
In This Topic

save Method
In This Topic
Saves the PDF document to the specified stream.
Syntax

    public void save(
       Stream stream,
       PDFSecurityHandler securityHandler,
       boolean enableObjectCompression
    )

#### Parameters

stream
  Destination stream.
securityHandler
  Security handler for encrypting the saved file.
enableObjectCompression
  When set to true, the structure of the PDF Objects is also compressed. Supported when PDF version >= 1.5

See Also

#### Reference

PDFFlowDocument Class
PDFFlowDocument Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.