com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class SaveOptions.MarginInfo

  • Enclosing class:
    SaveOptions


    public static class SaveOptions.MarginInfo
    extends Object

    Instance of this class represents information about page margin That can be drown on some result document.

    • Constructor Detail

      • MarginInfo

        public MarginInfo()

        Creates instance of MarginInfo

      • MarginInfo

        public MarginInfo(SaveOptions.MarginPartStyle commonMargin)

        Creates instance of MarginInfo class and initializes all elements of page margin(Top, Left, Right, Bottom) with attributes copied from supplied margin style

        Parameters:
        commonMargin - style of margin parts that will be used for all elements of margin(left, right, top, bottom)
    • Method Detail

      • getTopMarginIfAny

        public SaveOptions.MarginPartStyle getTopMarginIfAny()

        Represents top page margin(if any)

        Returns:
        MarginPartStyle instance
      • setTopMarginIfAny

        public void setTopMarginIfAny(SaveOptions.MarginPartStyle topMarginIfAny)

        Represents top page margin(if any)

        Parameters:
        topMarginIfAny - MarginPartStyle instance
      • getRightMarginIfAny

        public SaveOptions.MarginPartStyle getRightMarginIfAny()

        Represents right page margin(if any)

        Returns:
        MarginPartStyle instance
      • setRightMarginIfAny

        public void setRightMarginIfAny(SaveOptions.MarginPartStyle rightMarginIfAny)

        Represents right page margin(if any)

        Parameters:
        rightMarginIfAny - MarginPartStyle instance
      • getBottomMarginIfAny

        public SaveOptions.MarginPartStyle getBottomMarginIfAny()

        Represents bottom page margin(if any)

        Returns:
        MarginPartStyle instance
      • setBottomMarginIfAny

        public void setBottomMarginIfAny(SaveOptions.MarginPartStyle bottomMarginIfAny)

        Represents bottom page margin(if any)

        Parameters:
        bottomMarginIfAny - MarginPartStyle instance
      • getLeftMarginIfAny

        public SaveOptions.MarginPartStyle getLeftMarginIfAny()

        Represents left page margin(if any)

        Returns:
        MarginPartStyle instance
      • setLeftMarginIfAny

        public void setLeftMarginIfAny(SaveOptions.MarginPartStyle leftMarginIfAny)

        Represents left page margin(if any)

        Parameters:
        leftMarginIfAny - MarginPartStyle instance