com.groupdocs.redaction

Class SaveOptions



  • public class SaveOptions
    extends Object

    Sets options to change output file name or convert the document to image-based PDF

    • Constructor Detail

      • SaveOptions

        public SaveOptions()

        Creates new instance with defaults: rasterize to PDF - false, add suffix - false

      • SaveOptions

        public SaveOptions(boolean rasterizeToPdf,
                   String suffix)

        Creates new instance with given parameters

        Parameters:
        rasterizeToPdf - True, if all pages in the document need to be converted to images and put in a single PDF file
        suffix - This text will be added to the end of file name, if not empty also sets AddSuffix to true
    • Method Detail

      • getAddSuffix

        public final boolean getAddSuffix()

        True, if the file name need to be changed before saving. False by default

      • setAddSuffix

        public final void setAddSuffix(boolean value)

        True, if the file name need to be changed before saving. False by default

      • getRedactedFileSuffix

        public final String getRedactedFileSuffix()

        Custom suffix for output file, overrides SaveSuffix constant

      • setRedactedFileSuffix

        public final void setRedactedFileSuffix(String value)

        Custom suffix for output file, overrides SaveSuffix constant

      • getRasterizeToPDF

        public final boolean getRasterizeToPDF()

        True, if all pages in the document need to be converted to images and put in a single PDF file

      • setRasterizeToPDF

        public final void setRasterizeToPDF(boolean value)

        True, if all pages in the document need to be converted to images and put in a single PDF file

      • getRasterization

        public final RasterizationOptions getRasterization()

        Manages all settings for rasterization of a document