public final class PageSetup extends Object
Encapsulates info for page setup.
[Java] Pdf pdf1 = new Pdf(); pdf1.getPageSetup().setPageHeight ( PageSize.A2Height); Section sec1 = pdf1.getSections().add(); Text text1 = new Text(sec1,"this is text content"); text1.getMargin().setTop ( 30); sec1.getParagraphs().add(text1); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section PageHeight="1684"> <Text MarginTop="30"> <Segment>this is text content</Segment> </Text> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
RectData |
ArtBox
Gets or sets a
RectData object that indicates the art box of the page. |
RectData |
BleedBox
Gets or sets a
RectData object that indicates the bleed box of the page. |
RectData |
CropBox
Gets or sets a
RectData object that indicates the crop box of the page. |
MarginInfo |
Margin
Gets or sets a
MarginInfo object that indicates the page margin info. |
BorderInfo |
PageBorder
Gets or sets a
PageBorder object that indicates the page border. |
MarginInfo |
PageBorderMargin
Gets or sets a
MarginInfo object that indicates the margin between the page border and
the page edge. |
PageGutter |
PageGutter
Gets or sets a
PageGutter object that indicates the page gutter. |
float |
PageHeight
Gets or sets a float value that indicates the page height.
|
float |
PageWidth
Gets or sets a float value that indicates the page width.
|
RectData |
TrimBox
Gets or sets a
RectData object that indicates the trim box of the page. |
public MarginInfo Margin
Gets or sets a MarginInfo
object that indicates the page margin info.
public float PageWidth
Gets or sets a float value that indicates the page width.
public float PageHeight
Gets or sets a float value that indicates the page height.
public RectData CropBox
Gets or sets a RectData
object that indicates the crop box of the page.
public RectData BleedBox
Gets or sets a RectData
object that indicates the bleed box of the page.
The bleed box (PDF 1.3) defines the region to which the contents of the page
should be clipped when output in a production environment. This may include
any extra Ў°bleed areaЎ± needed to accommodate the physical limitations of cutting,
folding, and trimming equipment. The actual printed page may include
printing marks that fall outside the bleed box.
public RectData ArtBox
Gets or sets a RectData
object that indicates the art box of the page.
The art box (PDF 1.3) defines the extent of the pageЎЇs meaningful content
(including potential white space) as intended by the pageЎЇs creator.
public RectData TrimBox
Gets or sets a RectData
object that indicates the trim box of the page.
The trim box (PDF 1.3) defines the intended dimensions of the finished page
after trimming. It may be smaller than the media box, to allow for productionrelated
content such as printing instructions, cut marks, or color bars.
public BorderInfo PageBorder
Gets or sets a PageBorder
object that indicates the page border.
public MarginInfo PageBorderMargin
Gets or sets a MarginInfo
object that indicates the margin between the page border and
the page edge. The default value is half of the page margin.
public PageGutter PageGutter
Gets or sets a PageGutter
object that indicates the page gutter.
public PageSetup()
Initializes a new instance of the PageSetup
class.
public PageSetup(Section section)
Initializes a new instance of the PageSetup
class.
section
- The section in which this PageSetup is used for.public Object deepClone()
Clones a new PageSetup
object.
PageSetup
object.Copyright © 2014 Aspose. All Rights Reserved.