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()
public COSDocument getDocument()
public int getNumberOfPages()
public PDPage getPage(int number)
public void addPage(PDPage page, int number)
public PDPage newPage(double[] bbox, int insertAt)
public void save()
public void saveAs(String fileName) throws IOException
IOExceptionpublic void saveTo(OutputStream stream)
public PDStructTreeRoot getStructTreeRoot()
public PDMetadata getMetadata()
public List<PDOutputIntent> getOutputIntents()
public PDOutlineDictionary getOutlines()
public PDAcroForm getAcroForm()
public SeekableInputStream getPDFSource()
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.