com.aspose.xps.rendering

Class PdfSaveOptions

    • Constructor Detail

      • PdfSaveOptions

        public PdfSaveOptions()

        Creates new instance of options.

    • Method Detail

      • getPageNumbers

        public int[] getPageNumbers()

        Gets the array of numbers of pages to render.

        Specified by:
        getPageNumbers in interface IMultiPageSaveOptions
        Returns:
        Numbers of pages.
      • setPageNumbers

        public void setPageNumbers(int[] value)

        Sets the array of numbers of pages to render.

        Specified by:
        setPageNumbers in interface IMultiPageSaveOptions
        Parameters:
        value - Numbers of pages.
      • getOutlineTreeHeight

        public int getOutlineTreeHeight()

        Gets the height of the document outline tree to save. 0 - the outline tree will not be converted, 1 - only the first level outline items will be converted, and so on.

        Returns:
        The outline tree height.
      • setOutlineTreeHeight

        public void setOutlineTreeHeight(int value)

        Sets the height of the document outline tree to save. 0 - the outline tree will not be converted, 1 - only the first level outline items will be converted, and so on.

        Parameters:
        value - The outline tree height.
      • getOutlineTreeExpansionLevel

        public int getOutlineTreeExpansionLevel()

        Gets up to what level the document outline should be expanded when the PDF file is viewed. 1 - only the first level outline items are shown, 2 - only the first and second level outline items are shown, and so on.

        Returns:
        The outline tree expansion level.
      • setOutlineTreeExpansionLevel

        public void setOutlineTreeExpansionLevel(int value)

        Sets up to what level the document outline should be expanded when the PDF file is viewed. 1 - only the first level outline items are shown, 2 - only the first and second level outline items are shown, and so on.

        Parameters:
        value - The outline tree expansion level.
      • getTextCompression

        public PdfTextCompression getTextCompression()

        Returns the compression type to be used for all content streams except images. Default is PdfTextCompression.Flate.

        Returns:
        The compression type.
      • setTextCompression

        public void setTextCompression(PdfTextCompression value)

        Sets the compression type to be used for all content streams except images. Default is PdfTextCompression.Flate.

        Parameters:
        value - The compression type.
      • getImageCompression

        public PdfImageCompression getImageCompression()

        Returns the compression type to be used for all images in the document. Default is PdfImageCompression.Auto.

        Returns:
        The compression type.
      • setImageCompression

        public void setImageCompression(PdfImageCompression value)

        Sets the compression type to be used for all images in the document. Default is PdfImageCompression.Auto.

        Parameters:
        value - The compression type.
      • getEncryptionDetails

        public PdfEncryptionDetails getEncryptionDetails()

        Returns the encryption details. If not set, then no encryption will be performed.

        Returns:
        The encryption details.
      • setEncryptionDetails

        public void setEncryptionDetails(PdfEncryptionDetails value)

        Sets the encryption details. If not set, then no encryption will be performed.

        Parameters:
        value - The encryption details.