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

NameTypeAccessDescription
widthdoubleReadReturns the page width in points.
heightdoubleReadReturns the page height in points.
pureHeightdoubleReadReturns the usable height (page height minus top and bottom margins).
marginMarginInfoReadReturns the margin information.
landscapebooleanReadReturns whether this page is in landscape orientation.

méthodes

SignatureDescription
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()doubleReturns the page width in points.
setWidth(width: double)Sets the page width in points.
getHeight()doubleReturns the page height in points.
getPureHeight()doubleReturns the usable height (page height minus top and bottom margins).
setHeight(height: double)Sets the page height in points.
getMargin()MarginInfoReturns 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()booleanReturns whether this page is in landscape orientation.
setIsLandscape(landscape: boolean)Sets whether this page should be in landscape orientation.
deepClone()PageInfoCreates a deep copy of this PageInfo, including a copy of the margin.
toString()String

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français