com.groupdocs.conversion.options.convert

Class PdfConvertOptions

    • Constructor Detail

      • PdfConvertOptions

        public PdfConvertOptions()

        Initializes new instance of PdfConvertOptions class.

    • Method Detail

      • getWidth

        public final int getWidth()

        Desired page width in pixels after conversion.

      • setWidth

        public final void setWidth(int value)

        Desired page width in pixels after conversion.

      • getHeight

        public final int getHeight()

        Desired page height in pixels after conversion.

      • setHeight

        public final void setHeight(int value)

        Desired page height in pixels after conversion.

      • getDpi

        public final double getDpi()

        Desired page DPI after conversion. The default resolution is: 96 dpi.

      • setDpi

        public final void setDpi(double value)

        Desired page DPI after conversion. The default resolution is: 96 dpi.

      • getPassword

        public final String getPassword()

        Set this property if you want to protect the converted document with a password.

      • setPassword

        public final void setPassword(String value)

        Set this property if you want to protect the converted document with a password.

      • getMarginTop

        public final int getMarginTop()

        Desired page top margin in pixels after conversion.

      • setMarginTop

        public final void setMarginTop(int value)

        Desired page top margin in pixels after conversion.

      • getMarginBottom

        public final int getMarginBottom()

        Desired page bottom margin in pixels after conversion.

      • setMarginBottom

        public final void setMarginBottom(int value)

        Desired page bottom margin in pixels after conversion.

      • getMarginLeft

        public final int getMarginLeft()

        Desired page left margin in pixels after conversion.

      • setMarginLeft

        public final void setMarginLeft(int value)

        Desired page left margin in pixels after conversion.

      • getMarginRight

        public final int getMarginRight()

        Desired page right margin in pixels after conversion.

      • setMarginRight

        public final void setMarginRight(int value)

        Desired page right margin in pixels after conversion.

      • getPdfOptions

        public final PdfOptions getPdfOptions()

        Pdf specific convert options

      • setPdfOptions

        public final void setPdfOptions(PdfOptions value)

        Pdf specific convert options

      • getRotate

        public final Rotation getRotate()

        Page rotation

      • setRotate

        public final void setRotate(Rotation value)

        Page rotation

      • getPageNumber

        public Integer getPageNumber()
        Gets the page number to start conversion from.
        Specified by:
        getPageNumber in interface IPagedConvertOptions
        Returns:
        The page number to start conversion from.
      • setPageNumber

        public void setPageNumber(int pageNumber)
        Sets the page number to start conversion from.
        Specified by:
        setPageNumber in interface IPagedConvertOptions
        Parameters:
        pageNumber - The page number to start conversion from.
      • getPagesCount

        public Integer getPagesCount()
        Gets number of pages to convert starting from PageNumber.
        Specified by:
        getPagesCount in interface IPagedConvertOptions
        Returns:
        Number of pages to convert starting from PageNumber.
      • setPagesCount

        public void setPagesCount(int pagesCount)
        Sets number of pages to convert starting from PageNumber.
        Specified by:
        setPagesCount in interface IPagedConvertOptions
        Parameters:
        pagesCount - Number of pages to convert starting from PageNumber.
      • getPages

        public List<Integer> getPages()
        Gets The list of page indexes to be converted. Should be specified to convert specific pages.
        Specified by:
        getPages in interface IPageRangedConvertOptions
        Returns:
        The list of page indexes to be converted. Should be specified to convert specific pages.
      • setPages

        public void setPages(List<Integer> pages)
        Sets the list of page indexes to be converted. Should be specified to convert specific pages.
        Specified by:
        setPages in interface IPageRangedConvertOptions
        Parameters:
        pages - The list of page indexes to be converted. Should be specified to convert specific pages.