PDF4Java Reference Documentation
com.o2sol.pdf4java Package / PDFFixedDocument Class / save Method / save(String,PDFSecurityHandler,boolean) Method
File where the PDF document is saved.
Security handler for encrypting the saved file.
When set to true, the structure of the PDF objects is also compressed. Supported when PDF version &ge; 1.5
Collapse All Expand All
In This Topic

save(String,PDFSecurityHandler,boolean) Method
In This Topic
Saves the PDF document to a file.
Syntax

    public void save(
       java.lang.String fileName,
       PDFSecurityHandler securityHandler,
       boolean enableObjectCompression
    )

#### Parameters

fileName
  File where the PDF document is saved.
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 &ge; 1.5

See Also

#### Reference

PDFFixedDocument Class
PDFFixedDocument Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.