public final class Pages extends PDFObject
PDFObject
that maintains the list of pages for the document.
When a PDFDocument
is created, it will create an instance of
Pages
and add it to the document catalog. You won't normally
interact directly with this class.Modifier and Type | Method and Description |
---|---|
java.lang.String |
findOrCreateFontReference(java.awt.Font f)
Finds or creates a font reference for the specified AWT font.
|
PDFDocument |
getDocument()
Returns the PDF document that the pages belong to.
|
PDFFont |
getFont(java.lang.String name)
Returns the PDF font with the specified name, or
null if
there is no font with that name. |
java.util.List<PDFFont> |
getFonts()
Returns a list of fonts used in these pages.
|
byte[] |
getObjectBytes()
Returns the bytes that go between the 'obj' and 'endobj' in the
PDF output for this object.
|
java.util.List<Page> |
getPages()
Returns a list of the pages in this object.
|
getGeneration, getNumber, getReference, toPDFBytes
public PDFDocument getDocument()
null
).public java.util.List<Page> getPages()
public java.util.List<PDFFont> getFonts()
public PDFFont getFont(java.lang.String name)
null
if
there is no font with that name.name
- the font name.null
.public java.lang.String findOrCreateFontReference(java.awt.Font f)
f
- the font (null
not permitted).public byte[] getObjectBytes()
PDFObject
getObjectBytes
in class PDFObject