com.groupdocs.editor.options

Class PdfSaveOptions

  • All Implemented Interfaces:
    ISaveOptions


    public final class PdfSaveOptions
    extends Object
    implements ISaveOptions

    Allows to specify custom options for generating and saving PDF (Portable Document Format) documents

    • Constructor Summary

      Constructors 
      Constructor and Description
      PdfSaveOptions() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte getCompliance()
      Specifies the PDF standards compliance level for output documents.
      byte getFontEmbedding()
      Responsible for embedding font resources into resultant PDF document, which are used in the original document.
      boolean getOptimizeMemoryUsage()
      Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage.
      String getPassword()
      Password, which will be applied to the generated PDF document as user password, required for opening.
      void setCompliance(byte value)
      Specifies the PDF standards compliance level for output documents.
      void setOptimizeMemoryUsage(boolean value)
      Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage.
      void setPassword(String value)
      Password, which will be applied to the generated PDF document as user password, required for opening.
    • Constructor Detail

      • PdfSaveOptions

        public PdfSaveOptions()
    • Method Detail

      • getCompliance

        public final byte getCompliance()

        Specifies the PDF standards compliance level for output documents. Default is PdfCompliance.Pdf17.

      • getFontEmbedding

        public final byte getFontEmbedding()

        Responsible for embedding font resources into resultant PDF document, which are used in the original document. By default doesn't embed any fonts (NotEmbed).

      • getOptimizeMemoryUsage

        public final boolean getOptimizeMemoryUsage()

        Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage. Setting this option to true can significantly decrease memory consumption while generating large documents at the cost of slower saving time. Default is false (memory optimization is disabled for the sake of better performance).

      • getPassword

        public final String getPassword()

        Password, which will be applied to the generated PDF document as user password, required for opening. If NULL or empty, no password will be applied to the document. Otherwise, document will be encrypted with RC4 (key length of 128 bit). By default is NULL — password is not applied.

      • setCompliance

        public final void setCompliance(byte value)

        Specifies the PDF standards compliance level for output documents. Default is PdfCompliance.Pdf17.

      • setOptimizeMemoryUsage

        public final void setOptimizeMemoryUsage(boolean value)

        Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage. Setting this option to true can significantly decrease memory consumption while generating large documents at the cost of slower saving time. Default is false (memory optimization is disabled for the sake of better performance).

      • setPassword

        public final void setPassword(String value)

        Password, which will be applied to the generated PDF document as user password, required for opening. If NULL or empty, no password will be applied to the document. Otherwise, document will be encrypted with RC4 (key length of 128 bit). By default is NULL — password is not applied.