PdfFileEditorContentsResizeParameters Class
Class for specifing page resize parameters. Allow to set the following parameters: Size of result page (width, height) in default space units or in percents of initial pages size; Left, Top, Bottom and Right margins in default space units or in percents of initial page size; Some values may be left null for automatic calculation. These values will be calculated from rest of page size after calculation explicitly specified values. For example: if page width = 100 and new page width specified 60 units then left and right margins are automatically calculated: (100 - 60) / 2 = 15. This class is used in ResizeContents method.
Inheritance Hierarchy
SystemObject
  Aspose.Pdf.FacadesPdfFileEditorContentsResizeParameters

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.12
Syntax
public class ContentsResizeParameters

The PdfFileEditorContentsResizeParameters type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBottomMargin
Gets or sets bottom margin on the resultant page.
Public propertyContentsHeight
Gets or sets height of the content of the source page on the resultant page.
Public propertyContentsWidth
Gets or sets width of the content of the source page on the resultant page.
Public propertyLeftMargin
Gets or sets left margin on the resultant page.
Public propertyRightMargin
Gets or sets right margin on the resultant page.
Public propertyTopMargin
Gets or sets top margin on the resultant page.
Methods
  NameDescription
Public methodStatic memberContentSize
Creates resize parameters with specified contents size.
Public methodStatic memberContentSizePercent
Creates resize parameters with specified contents size in percents of initial page size. Margins are caculated automatically.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberMargins
Creates resize parameters with specifed margins value. Contents size is automatically calculated.
Public methodStatic memberMarginsPercent
Creates resize parameters. Margins are specified in percents of initial page size.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberPageResize
Creates resize paramters for page resize.
Public methodStatic memberPageResizePct
Creates resize paramters for page resize. New sizes are specified in percent.
Public methodToString (Inherited from Object.)
See Also