com.aspose.diagram

Class PageSize

  • java.lang.Object
    • com.aspose.diagram.PageSize
public class PageSize 
extends java.lang.Object

Contains information about page size for the generated images.

Constructor Summary
PageSize(intpaperSizeFormat)
Initializes a new instance of this class that can be used to set page size for the generated images.
PageSize(floatwidth, floatheight)
Initializes a new instance of this class that can be used to set page size for the generated images.
 
Property Getters/Setters Summary
floatgetHeight()
void
setHeight(floatvalue)
           Gets or sets the page height in points for the the generated images.
intgetPaperSizeFormat()
void
           Gets or sets the paper size format for the generated images. Can be PaperSizeFormat. The value of the property is PaperSizeFormat integer constant.
floatgetWidth()
void
setWidth(floatvalue)
           Gets or sets the page width in points for the the generated images.
 

    • Constructor Detail

      • PageSize

        public PageSize(int paperSizeFormat)
        Initializes a new instance of this class that can be used to set page size for the generated images.
        Parameters:
        paperSizeFormat - A PaperSizeFormat value. Can be PaperSizeFormat.
      • PageSize

        public PageSize(float width, float height)
                 throws java.lang.Exception
        Initializes a new instance of this class that can be used to set page size for the generated images.
        Parameters:
        width - Page width in points for the the generated images.
        height - Page height in points for the the generated images.
    • Property Getters/Setters Detail

      • getWidth/setWidth

        public float getWidth() / public void setWidth(float value)
        
        Gets or sets the page width in points for the the generated images. The value must be > 0. If Width is set, Height must be set too.
      • getHeight/setHeight

        public float getHeight() / public void setHeight(float value)
        
        Gets or sets the page height in points for the the generated images. The value must be > 0. If Height is set,Width must be set too.
      • getPaperSizeFormat/setPaperSizeFormat

        public int getPaperSizeFormat() / public void setPaperSizeFormat(int value)
        
        Gets or sets the paper size format for the generated images. Can be PaperSizeFormat. The value of the property is PaperSizeFormat integer constant.