com.aspose.note

Class PdfSaveOptions



  • public final class PdfSaveOptions
    extends SaveOptions

    Allows to specify additional options when rendering document pages to PDF.

    • Constructor Detail

      • PdfSaveOptions

        public PdfSaveOptions()

        Initializes a new instance of the PdfSaveOptions class.

    • Method Detail

      • getPageCount

        public int getPageCount()

        Gets or sets the number of pages to save. By default is System.int32.maxValue which means all pages of the document will be rendered.

      • setPageCount

        public void setPageCount(int value)

        Gets or sets the number of pages to save. By default is System.int32.maxValue which means all pages of the document will be rendered.

      • getImageCompression

        public final int getImageCompression()

        Gets the type of compression applied to images in the PDF file.

      • setImageCompression

        public final void setImageCompression(int value)

        Sets the type of compression applied to images in the PDF file.

      • getJpegQuality

        public final int getJpegQuality()

        Gets a value determining the quality of the JPEG images inside PDF document. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.


        The default value is 90.
      • setJpegQuality

        public final void setJpegQuality(int value)

        Sets a value determining the quality of the JPEG images inside PDF document. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.


        The default value is 90.
      • getPageIndex

        public int getPageIndex()

        Gets or sets the index of the first page to save. By default is 0.

      • setPageIndex

        public void setPageIndex(int value)

        Gets or sets the index of the first page to save. By default is 0.

      • getPageSplittingAlgorithm

        public PageSplittingAlgorithm getPageSplittingAlgorithm()

        Gets or sets algorithm used for page splitting.

        Value: The PageSplittingAlgorithm.
      • setPageSplittingAlgorithm

        public void setPageSplittingAlgorithm(PageSplittingAlgorithm value)

        Gets or sets algorithm used for page splitting.

        Value: The PageSplittingAlgorithm.