public class PDDocument extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PDF_HEADER_DEFAULT |
| Constructor and Description |
|---|
PDDocument() |
PDDocument(InputStream fileStream) |
PDDocument(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(PDPage page,
int number) |
void |
close() |
PDAcroForm |
getAcroForm() |
PDCatalog |
getCatalog() |
COSDocument |
getDocument() |
PDMetadata |
getMetadata() |
int |
getNumberOfPages() |
PDOutlineDictionary |
getOutlines() |
List<PDOutputIntent> |
getOutputIntents() |
PDPage |
getPage(int number) |
List<PDPage> |
getPages() |
SeekableInputStream |
getPDFSource() |
PDStructTreeRoot |
getStructTreeRoot() |
PDPage |
newPage(double[] bbox,
int insertAt) |
void |
open(InputStream inputStream) |
void |
open(String filename) |
void |
save() |
void |
saveAs(String fileName) |
void |
saveAs(Writer out,
String filename) |
void |
saveTo(OutputStream stream) |
public static final String PDF_HEADER_DEFAULT
public PDDocument()
throws IOException
IOExceptionpublic PDDocument(String filename) throws IOException
IOExceptionpublic PDDocument(InputStream fileStream) throws IOException
IOExceptionpublic void open(String filename) throws IOException
IOExceptionpublic void open(InputStream inputStream) throws IOException
IOExceptionpublic void close()
public PDCatalog getCatalog() throws IOException
IOExceptionpublic COSDocument getDocument()
public int getNumberOfPages()
throws IOException
IOExceptionpublic List<PDPage> getPages() throws IOException
IOExceptionpublic PDPage getPage(int number) throws IOException
IOExceptionpublic void addPage(PDPage page, int number) throws IOException
IOExceptionpublic PDPage newPage(double[] bbox, int insertAt) throws IOException
IOExceptionpublic void save()
public void saveAs(String fileName) throws IOException
IOExceptionpublic void saveTo(OutputStream stream)
public PDStructTreeRoot getStructTreeRoot() throws IOException
IOExceptionpublic PDMetadata getMetadata() throws IOException
IOExceptionpublic List<PDOutputIntent> getOutputIntents() throws IOException
IOExceptionpublic PDOutlineDictionary getOutlines() throws IOException
IOExceptionpublic PDAcroForm getAcroForm() throws IOException
IOExceptionpublic SeekableInputStream getPDFSource()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.