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 class that can be used to save a document in the SaveFileFormatPdf format.

    • Method Detail

      • getCompliance

        public int getCompliance()

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

        Returns:
        conformance level (PdfCompliance).
      • setCompliance

        public void setCompliance(int value)

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

        Parameters:
        value - conformance level (PdfCompliance).
      • getDefaultFontName

        public String getDefaultFontName()
        Gets the default font for rendering.
        Returns:
        default font for rendering.
      • setDefaultFontName

        public void setDefaultFontName(String value)
        Sets the default font for rendering.
        Parameters:
        value - default font for rendering.
      • getEncryptionDetails

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

        public void setEncryptionDetails(PdfEncryptionDetails value)
        Sets an encryption details. If not setInternal, then no encryption will be performed.
        Parameters:
        value - encryption details.
      • getPages

        public List<Integer> getPages()
        List of pages numbers to save when saving project layout to separate files. All pages will be saved if this list is empty.
        Returns:
        List of pages numbers to save.
      • setPages

        public void setPages(List<Integer> value)
        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 - List of pages numbers to save.
      • getReduceFooterGap

        public boolean getReduceFooterGap()
        Gets a value indicating whether a gap between last task and the footer must be reduced.
        Returns:
        value indicating whether a gap between last task and the footer must be reduced.
      • setReduceFooterGap

        public void setReduceFooterGap(boolean value)
        Sets a value indicating whether a gap between last task and the footer must be reduced.
        Parameters:
        value - value indicating whether a gap between last task and the footer must be reduced.
      • getSaveToSeparateFiles

        public boolean getSaveToSeparateFiles()

        Determines whether to save project pages to separate files.

        Returns:
        true if project is to be saved to separate image files; otherwise, false.
      • setSaveToSeparateFiles

        public void setSaveToSeparateFiles(boolean value)
        Determines whether to save project pages to separate files.
        Parameters:
        value - true if project is to be saved to separate image files; otherwise, false.
      • getTextCompression

        public int getTextCompression()

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

        Returns:
        text compression (PdfTextCompression) .
      • setTextCompression

        public void setTextCompression(int value)

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

        Parameters:
        value - text compression (PdfTextCompression) .
      • getUseProjectDefaultFont

        public boolean getUseProjectDefaultFont()
        Gets a value indicating whether the default font must be used for rendering.
        Returns:
        value indicating whether the default font must be used for rendering.
      • setUseProjectDefaultFont

        public 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.