com.aspose.html.rendering

Class PageSetup

  • All Implemented Interfaces:
    Cloneable


    public class PageSetup
    extends Object
    implements Cloneable

    Represents a page setup object is used for configuration output page-set.

    • Constructor Detail

      • PageSetup

        public PageSetup()

        Initializes a new instance of the PageSetup class.

    • Method Detail

      • getAdjustToWidestPage

        public boolean getAdjustToWidestPage()

        Gets or sets flag that determines case when page size will be adjusted to widest page in document. This options is time-consuming so time of document processing can be increased in two times. Adjustment will take place only if widest page in document is wider than page size determined in PageSetup. Adjusted page size will be used for all pages in document.

      • setAdjustToWidestPage

        public void setAdjustToWidestPage(boolean value)

        Gets or sets flag that determines case when page size will be adjusted to widest page in document. This options is time-consuming so time of document processing can be increased in two times. Adjustment will take place only if widest page in document is wider than page size determined in PageSetup. Adjusted page size will be used for all pages in document.

      • getFirstPage_Rename_Namesake

        public Page getFirstPage_Rename_Namesake()

        Gets dimensions of first page, which is used for Device.WindowSize determination.

      • setLeftRightPage

        public void setLeftRightPage(Page leftPage,
                                     Page rightPage)

        Sets the Left/Right page configuration.

        Parameters:
        leftPage - The left page.
        rightPage - The right page.
      • getLeftPage

        public Page getLeftPage()

        Gets the Odd Page configuration.

      • getRightPage

        public Page getRightPage()

        Gets the Even Page configuration.

      • getAnyPage

        public Page getAnyPage()

        Gets or sets all pages configuration in the the page-sequence.

        Value: Any page.
      • setAnyPage

        public void setAnyPage(Page value)

        Gets or sets all pages configuration in the the page-sequence.

        Value: Any page.
      • getFirstPage

        public Page getFirstPage()

        Gets or sets the first page configuration.

        Value: The first page.
      • setFirstPage

        public void setFirstPage(Page value)

        Gets or sets the first page configuration.

        Value: The first page.
      • getLastPage

        public Page getLastPage()

        Gets or sets the last page configuration.

        Value: The last page.
      • setLastPage

        public void setLastPage(Page value)

        Gets or sets the last page configuration.

        Value: The last page.
      • getA4

        public static Page getA4()