PageInfo

Overview

PageInfo 是一个类在Java的FOSS中.

包含页面布局信息,包括尺寸和边缘.

本类提供了14种方法,用于在Java程序中使用PageInfo 对象. 有的方法包括: PageInfo, deepClone, getHeight, getMargin, getPureHeight, getWidth, isLandscape, setHeight, setIsLandscape, setMargin, setWidth, toString. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: height, landscape, margin, pureHeight, width.

Properties

NameTypeAccessDescription
widthdoubleRead返回页面宽度以点数表示.
heightdoubleRead返回页面高度以点表示.
pureHeightdoubleRead返回可用高度 (页面高度减去上下边缘).
marginMarginInfoRead返回保证金信息.
landscapebooleanRead返回页面是否以景观为导向.

Methods

SignatureDescription
PageInfo()创建一个PageInfo,默认的A4尺寸 (595 x 842点) 和零边缘.
PageInfo(width: double, height: double)创建一个 PageInfo 有指定尺寸和零边缘.
getWidth()double返回页面宽度以点数表示.
setWidth(width: double)设置页面宽为点.
getHeight()double返回页面高度以点表示.
getPureHeight()double返回可用高度 (页面高度减去上下边缘).
setHeight(height: double)设置页面高度以点数.
getMargin()MarginInfo返回保证金信息.
setMargin(margin: MarginInfo)设置利信息.
setMargin(canonical: org.aspose.pdf.MarginInfo)设置从正规顶级类型{@link org.aspose.pdf.MarginInfo}中获取的保证金信息.
isLandscape()boolean返回页面是否以景观为导向.
setIsLandscape(landscape: boolean)设置该页面是否应该以景观为导向.
deepClone()PageInfo创建一个深度副本,包括边缘的复制.
toString()String

See Also

 中文