com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class PdfSaveOptions



  • public class PdfSaveOptions
    extends SaveOptions

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

    • Constructor Detail

      • PdfSaveOptions

        public PdfSaveOptions()

        Initializes a new instance of the PdfSaveOptions class that can be used to save a document in the SaveFileFormat format.

    • Method Detail

      • getCompliance

        public final int getCompliance()

        Gets a desired conformance level for generated PDF document. Default is PdfCompliance.Pdf15.

        Returns:
        a desired conformance level for generated PDF document.
      • setCompliance

        public final void setCompliance(int value)

        Sets a desired conformance level for generated PDF document. Default is PdfCompliance.Pdf15.

        Parameters:
        value - a desired conformance level for generated PDF document.
      • getDefaultFontName

        public final String getDefaultFontName()

        Gets the default font for rendering.

        Returns:
        the default font for rendering.
      • setDefaultFontName

        public final void setDefaultFontName(String value)

        Sets the default font for rendering.

        Parameters:
        value - the default font for rendering.
      • getEncryptionDetails

        public final PdfEncryptionDetails getEncryptionDetails()
        Gets an encryption details. If not setInternal, then no encryption will be performed.
        Returns:
        encryption details.
      • setEncryptionDetails

        public final void setEncryptionDetails(PdfEncryptionDetails value)

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

        Parameters:
        value - a encryption details.
      • getPages

        public final List<Integer> getPages()

        Gets the list of pages numbers to save when saving project layout to separate files.


        All pages will be saved if this list is empty.

        Returns:
        the list of pages numbers to save when saving project layout to separate files.
      • setPages

        public final void setPages(List<Integer> value)

        Sets the list of pages numbers to save when saving project layout to separate files.


        All pages will be saved if this list is empty.

        Parameters:
        value - the list of pages numbers to save when saving project layout to separate files.
      • getReduceFooterGap

        public final boolean getReduceFooterGap()

        Gets a value indicating whether a gap between last task and the footer must be reduced.

        Returns:
        a value indicating whether a gap between last task and the footer must be reduced.
      • setReduceFooterGap

        public final void setReduceFooterGap(boolean value)

        Sets a value indicating whether a gap between last task and the footer must be reduced.

        Parameters:
        value - a value indicating whether a gap between last task and the footer must be reduced.
      • getSaveToSeparateFiles

        public final boolean getSaveToSeparateFiles()

        Gets a value indicating whether to save project pages to separate files.

        Returns:
        a value indicating whether to save project pages to separate files.
      • setSaveToSeparateFiles

        public final void setSaveToSeparateFiles(boolean value)

        Sets a value indicating whether to save project pages to separate files.

        Parameters:
        value - a value indicating whether to save project pages to separate files.
      • getTextCompression

        public final int getTextCompression()

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

        Returns:
        a compression type to be used for all content streams except images.
      • setTextCompression

        public final void setTextCompression(int value)

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

        Parameters:
        value - a compression type to be used for all content streams except images.
      • getUseProjectDefaultFont

        public final boolean getUseProjectDefaultFont()

        Gets a value indicating whether the default font must be used for rendering.

        Returns:
        a value indicating whether the default font must be used for rendering.
      • setUseProjectDefaultFont

        public final void setUseProjectDefaultFont(boolean value)

        Sets a value indicating whether the default font must be used for rendering.

        Parameters:
        value - a value indicating whether the default font must be used for rendering.