PageInfo
Vue de l’ensemble
‘PageInfo’ est une classe dans Aspose.PDF FOSS pour Java.
Il maintient les informations de layout de page, y compris les dimensions et les marges.
Cette classe fournit 14 méthodes pour travailler avec des objets PageInfo dans les programmes Java. Les méthodologies disponibles comprennent: ‘PageInFO’, ‘deepClone’, getHeight', ‘getMargin’, 'getPureHeigh', ’getWidth',isLandscape’, ‚setHeights‘, setIsLANDScAPE', ''setMargin, ‘setWitth , 'toString. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘height., 'landscapé,, ‘marginet 'pure Height' etwidth’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
width | double | Read | Returns the page width in points. |
height | double | Read | Returns the page height in points. |
pureHeight | double | Read | Returns the usable height (page height minus top and bottom margins). |
margin | MarginInfo | Read | Returns the margin information. |
landscape | boolean | Read | Returns whether this page is in landscape orientation. |
méthodes
| Signature | Description |
|---|---|
PageInfo() | Creates a PageInfo with default A4 dimensions (595 x 842 points) and zero margins. |
PageInfo(width: double, height: double) | Creates a PageInfo with the specified dimensions and zero margins. |
getWidth() → double | Returns the page width in points. |
setWidth(width: double) | Sets the page width in points. |
getHeight() → double | Returns the page height in points. |
getPureHeight() → double | Returns the usable height (page height minus top and bottom margins). |
setHeight(height: double) | Sets the page height in points. |
getMargin() → MarginInfo | Returns the margin information. |
setMargin(margin: MarginInfo) | Sets the margin information. |
setMargin(canonical: org.aspose.pdf.MarginInfo) | Sets the margin information from the canonical top-level |
| {@link org.aspose.pdf.MarginInfo} type. | |
isLandscape() → boolean | Returns whether this page is in landscape orientation. |
setIsLandscape(landscape: boolean) | Sets whether this page should be in landscape orientation. |
deepClone() → PageInfo | Creates a deep copy of this PageInfo, including a copy of the margin. |
toString() → String |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise