PageCollection

Vue de l’ensemble

‘PageCollection’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: Iterable<Pages>.

Il représente la collection de pages dans un document PDF (ISO 32000-1:2008, §7.3.2).

Cette classe fournit 14 méthodes pour travailler avec des objets PageCollection dans les programmes Java. Les méthodologies disponibles comprennent: PageColection, accepter , add ; ‘clear; deleteetget : ‘getCount . Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : `conto’.

Propriétés

NameTypeAccessDescription
countintReadReturns the number of pages.

méthodes

SignatureDescription
PageCollection(pagesDict: PdfDictionary, parser: PDFParser)Creates a PageCollection wrapping the /Pages root dictionary.
get(index: int)PageReturns the page at the given 1-based index.
getCount()intReturns the number of pages.
size()intReturns the number of pages (alias for {@link #getCount()}).
iterator()Iterator<Page>Returns an iterator over all pages.
accept(absorber: TextAbsorber)Accepts a text absorber to extract text from all pages in this collection.
accept(absorber: ImagePlacementAbsorber)Accepts an image placement absorber to find images on all pages.
add()PageCreates a new page with standard A4 page bounds [0 0 595 842], adds it to the
end of this collection, and returns it.
add(page: Page)Adds an existing page to the end of this collection.
add(otherPages: PageCollection)Adds all pages from another PageCollection to the end of this collection.
insert(index: int)PageInserts a new blank page (A4) at the given 1-based index and returns it.
insert(index: int, page: Page)Inserts a page at the given 1-based index.
clear()Removes all pages from the document.
delete(index: int)Removes the page at the given 1-based index.

Voir aussi

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