Package | Description |
---|---|
org.apache.pdfbox.multipdf | |
org.apache.pdfbox.pdfparser |
The pdfparser package contains classes to parse PDF documents and objects within the document.
|
org.apache.pdfbox.pdfwriter |
This is the persistence layer used to write the PDFBox documents to a stream.
|
org.apache.pdfbox.pdmodel |
The PDModel package represents a high level API for creating and manipulating PDF documents.
|
org.apache.pdfbox.pdmodel.common |
High level PD classes that are used throughout several packages are placed in the PDModel common package.
|
org.apache.pdfbox.pdmodel.common.filespecification |
The file specification package defines classes that are used for the PDF File Specification logic.
|
org.apache.pdfbox.pdmodel.encryption |
The encryption package will handle the PDF document security handlers and the functionality of pluggable security handlers.
|
org.apache.pdfbox.pdmodel.font |
Classes to deal with font functionality in a PDF Document.
|
org.apache.pdfbox.pdmodel.graphics |
The PDModel graphics package deals with graphics states, operations, and parameters within the PDF document.
|
org.apache.pdfbox.pdmodel.graphics.color |
This package deals with colors that are stored in a PDF document.
|
org.apache.pdfbox.pdmodel.graphics.form |
This package deals with Form XObjects that are stored in a PDF document.
|
org.apache.pdfbox.pdmodel.graphics.image |
This package deals with images that are stored in a PDF document.
|
org.apache.pdfbox.pdmodel.interactive.annotation |
The annotation package contains classes that work with PDF annotation elements.
|
org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible |
This is the visual signature part that help creating the visual representation for the digital signature.
|
org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline |
The outline package allows for a PDF outline(bookmarks) to be created.
|
org.apache.pdfbox.pdmodel.interactive.form |
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
|
org.apache.pdfbox.printing | |
org.apache.pdfbox.rendering | |
org.apache.pdfbox.text |
Modifier and Type | Method and Description |
---|---|
protected PDDocument |
Splitter.createNewDocument()
Create a new document to write the split contents to.
|
PDDocument |
PageExtractor.extract()
This will take a document and extract the desired pages into a new
document.
|
protected PDDocument |
Splitter.getDestinationDocument()
The source PDF document.
|
PDDocument |
LayerUtility.getDocument()
Returns the PDF document we work on.
|
protected PDDocument |
Splitter.getSourceDocument()
The source PDF document.
|
PDDocument |
Overlay.overlay(Map<Integer,String> specificPageOverlayFile)
This will add overlays to a documents.
|
Modifier and Type | Method and Description |
---|---|
List<PDDocument> |
Splitter.split(PDDocument document)
This will take a document and split into several other documents.
|
Modifier and Type | Method and Description |
---|---|
void |
PDFMergerUtility.appendDocument(PDDocument destination,
PDDocument source)
append all pages from source to destination.
|
PDFormXObject |
LayerUtility.importPageAsForm(PDDocument sourceDoc,
int pageNumber)
Imports a page from some PDF file as a Form XObject so it can be placed on another page
in the target document.
|
PDFormXObject |
LayerUtility.importPageAsForm(PDDocument sourceDoc,
PDPage page)
Imports a page from some PDF file as a Form XObject so it can be placed on another page
in the target document.
|
void |
Overlay.setAllPagesOverlayPDF(PDDocument allPagesOverlayPDF)
Sets the all pages overlay PDF.
|
void |
Overlay.setDefaultOverlayPDF(PDDocument defaultOverlayPDF)
Sets the default overlay PDF.
|
void |
Overlay.setEvenPageOverlayPDF(PDDocument evenPageOverlayPDF)
Sets the even page overlay PDF.
|
void |
Overlay.setFirstPageOverlayPDF(PDDocument firstPageOverlayPDF)
Sets the first page overlay PDF.
|
void |
Overlay.setInputPDF(PDDocument inputPDF)
Sets the PDF to be overlayed.
|
void |
Overlay.setLastPageOverlayPDF(PDDocument lastPageOverlayPDF)
Sets the last page overlay PDF.
|
void |
Overlay.setOddPageOverlayPDF(PDDocument oddPageOverlayPDF)
Sets the odd page overlay PDF.
|
List<PDDocument> |
Splitter.split(PDDocument document)
This will take a document and split into several other documents.
|
Constructor and Description |
---|
LayerUtility(PDDocument document)
Creates a new instance.
|
PageExtractor(PDDocument sourceDocument)
Creates a new instance of PageExtractor
|
PageExtractor(PDDocument sourceDocument,
int startPage,
int endPage)
Creates a new instance of PageExtractor
|
Modifier and Type | Method and Description |
---|---|
PDDocument |
PDFParser.getPDDocument()
This will get the PD document that was parsed.
|
Modifier and Type | Method and Description |
---|---|
void |
COSWriter.write(PDDocument doc)
This will write the pdf document.
|
void |
COSWriter.write(PDDocument doc,
SignatureInterface signInterface)
This will write the pdf document.
|
Modifier and Type | Method and Description |
---|---|
static PDDocument |
PDDocument.load(byte[] input)
Parses a PDF.
|
static PDDocument |
PDDocument.load(byte[] input,
String password)
Parses a PDF.
|
static PDDocument |
PDDocument.load(byte[] input,
String password,
InputStream keyStore,
String alias)
Parses a PDF.
|
static PDDocument |
PDDocument.load(byte[] input,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
PDDocument.load(File file)
Parses a PDF.
|
static PDDocument |
PDDocument.load(File file,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
PDDocument.load(File file,
String password)
Parses a PDF.
|
static PDDocument |
PDDocument.load(File file,
String password,
InputStream keyStore,
String alias)
Parses a PDF.
|
static PDDocument |
PDDocument.load(File file,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
PDDocument.load(File file,
String password,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
PDDocument.load(InputStream input)
Parses a PDF.
|
static PDDocument |
PDDocument.load(InputStream input,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
PDDocument.load(InputStream input,
String password)
Parses a PDF.
|
static PDDocument |
PDDocument.load(InputStream input,
String password,
InputStream keyStore,
String alias)
Parses a PDF.
|
static PDDocument |
PDDocument.load(InputStream input,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
PDDocument.load(InputStream input,
String password,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
Constructor and Description |
---|
PDDocumentCatalog(PDDocument doc)
Constructor.
|
PDDocumentCatalog(PDDocument doc,
COSDictionary rootDictionary)
Constructor.
|
PDPageContentStream(PDDocument doc,
PDAppearanceStream appearance)
Create a new appearance stream.
|
PDPageContentStream(PDDocument doc,
PDAppearanceStream appearance,
OutputStream outputStream)
Create a new appearance stream.
|
PDPageContentStream(PDDocument document,
PDPage sourcePage)
Create a new PDPage content stream.
|
PDPageContentStream(PDDocument document,
PDPage sourcePage,
boolean appendContent,
boolean compress)
|
PDPageContentStream(PDDocument document,
PDPage sourcePage,
boolean appendContent,
boolean compress,
boolean resetContext)
|
PDPageContentStream(PDDocument document,
PDPage sourcePage,
PDPageContentStream.AppendMode appendContent,
boolean compress)
Create a new PDPage content stream.
|
PDPageContentStream(PDDocument document,
PDPage sourcePage,
PDPageContentStream.AppendMode appendContent,
boolean compress,
boolean resetContext)
Create a new PDPage content stream.
|
Modifier and Type | Method and Description |
---|---|
static PDObjectStream |
PDObjectStream.createStream(PDDocument document)
This will create a new PDObjectStream object.
|
Constructor and Description |
---|
PDMetadata(PDDocument document)
This will create a new PDMetadata object.
|
PDMetadata(PDDocument doc,
InputStream str)
Constructor.
|
PDPageLabels(PDDocument document)
Creates an empty page label dictionary for the given document.
|
PDPageLabels(PDDocument document,
COSDictionary dict)
Creates an page label dictionary for a document using the information in
the given COS dictionary.
|
PDStream(PDDocument document)
Creates a new PDStream object.
|
PDStream(PDDocument doc,
InputStream input)
Constructor.
|
PDStream(PDDocument doc,
InputStream input,
COSArray filters)
Constructor.
|
PDStream(PDDocument doc,
InputStream input,
COSName filter)
Constructor.
|
Constructor and Description |
---|
PDEmbeddedFile(PDDocument document)
Constructor.
|
PDEmbeddedFile(PDDocument doc,
InputStream str)
Constructor.
|
PDEmbeddedFile(PDDocument doc,
InputStream input,
COSName filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
StandardSecurityHandler.prepareDocumentForEncryption(PDDocument document)
Prepare document for encryption.
|
abstract void |
SecurityHandler.prepareDocumentForEncryption(PDDocument doc)
Prepare the document for encryption.
|
void |
PublicKeySecurityHandler.prepareDocumentForEncryption(PDDocument doc)
Prepare the document for encryption.
|
Modifier and Type | Method and Description |
---|---|
static PDType0Font |
PDType0Font.load(PDDocument doc,
File file)
Loads a TTF to be embedded into a document as a Type 0 font.
|
static PDTrueTypeFont |
PDTrueTypeFont.load(PDDocument doc,
File file,
Encoding encoding)
Loads a TTF to be embedded into a document as a simple font.
|
static PDType0Font |
PDType0Font.load(PDDocument doc,
InputStream input)
Loads a TTF to be embedded into a document as a Type 0 font.
|
static PDType0Font |
PDType0Font.load(PDDocument doc,
InputStream input,
boolean embedSubset)
Loads a TTF to be embedded into a document as a Type 0 font.
|
static PDTrueTypeFont |
PDTrueTypeFont.load(PDDocument doc,
InputStream input,
Encoding encoding)
Loads a TTF to be embedded into a document as a simple font.
|
static PDType0Font |
PDType0Font.load(PDDocument doc,
org.apache.fontbox.ttf.TrueTypeFont ttf,
boolean embedSubset)
Loads a TTF to be embedded into a document as a Type 0 font.
|
static PDTrueTypeFont |
PDTrueTypeFont.loadTTF(PDDocument doc,
File file)
Deprecated.
Use
PDType0Font.load(PDDocument, File) instead. |
static PDTrueTypeFont |
PDTrueTypeFont.loadTTF(PDDocument doc,
InputStream input)
Deprecated.
Use
PDType0Font.load(PDDocument, InputStream) instead. |
Constructor and Description |
---|
PDType1Font(PDDocument doc,
InputStream pfbIn)
Creates a new Type 1 font for embedding.
|
PDType1Font(PDDocument doc,
InputStream pfbIn,
Encoding encoding)
Creates a new Type 1 font for embedding.
|
Constructor and Description |
---|
PDXObject(PDDocument document,
COSName subtype)
Creates a new XObject of the given subtype for writing.
|
Constructor and Description |
---|
PDICCBased(PDDocument doc)
Creates a new ICC color space with an empty stream.
|
PDOutputIntent(PDDocument doc,
InputStream colorProfile) |
Constructor and Description |
---|
PDFormXObject(PDDocument document)
Creates a Form Image XObject for writing, in the given document.
|
PDTransparencyGroup(PDDocument document)
Creates a Transparency Group for writing, in the given document.
|
Modifier and Type | Method and Description |
---|---|
static PDImageXObject |
CCITTFactory.createFromFile(PDDocument document,
File file)
Creates a new CCITT Fax compressed image XObject from the first image of a TIFF file.
|
static PDImageXObject |
CCITTFactory.createFromFile(PDDocument document,
File file,
int number)
Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file.
|
static PDImageXObject |
PDImageXObject.createFromFile(String imagePath,
PDDocument doc)
Create a PDImageXObject from an image file, see
PDImageXObject.createFromFileByExtension(File, PDDocument) for
more details. |
static PDImageXObject |
PDImageXObject.createFromFileByContent(File file,
PDDocument doc)
Create a PDImageXObject from an image file.
|
static PDImageXObject |
PDImageXObject.createFromFileByExtension(File file,
PDDocument doc)
Create a PDImageXObject from an image file.
|
static PDImageXObject |
LosslessFactory.createFromImage(PDDocument document,
BufferedImage image)
Creates a new lossless encoded Image XObject from a Buffered Image.
|
static PDImageXObject |
JPEGFactory.createFromImage(PDDocument document,
BufferedImage image)
Creates a new JPEG Image XObject from a Buffered Image.
|
static PDImageXObject |
JPEGFactory.createFromImage(PDDocument document,
BufferedImage image,
float quality)
Creates a new JPEG Image XObject from a Buffered Image and a given quality.
|
static PDImageXObject |
JPEGFactory.createFromImage(PDDocument document,
BufferedImage image,
float quality,
int dpi)
Creates a new JPEG Image XObject from a Buffered Image, a given quality and DPI.
|
static PDImageXObject |
CCITTFactory.createFromRandomAccess(PDDocument document,
RandomAccess reader)
Deprecated.
Use
CCITTFactory.createFromFile(PDDocument, File) instead. |
static PDImageXObject |
CCITTFactory.createFromRandomAccess(PDDocument document,
RandomAccess reader,
int number)
Deprecated.
Use
CCITTFactory.createFromFile(PDDocument, File, int) instead. |
static PDImageXObject |
JPEGFactory.createFromStream(PDDocument document,
InputStream stream)
Creates a new JPEG Image XObject from an input stream containing JPEG data.
|
Constructor and Description |
---|
PDImageXObject(PDDocument document)
Creates an Image XObject in the given document.
|
PDImageXObject(PDDocument document,
InputStream encodedStream,
COSBase cosFilter,
int width,
int height,
int bitsPerComponent,
PDColorSpace initColorSpace)
Creates an Image XObject in the given document using the given filtered stream.
|
Constructor and Description |
---|
PDAppearanceStream(PDDocument document)
Creates a Form Image XObject for writing, in the given document.
|
Modifier and Type | Method and Description |
---|---|
PDDocument |
PDFTemplateStructure.getTemplate()
Gets PDDocument template.
|
Modifier and Type | Method and Description |
---|---|
void |
PDVisibleSigBuilder.closeTemplate(PDDocument template) |
void |
PDFTemplateBuilder.closeTemplate(PDDocument template)
Closes template
|
void |
PDVisibleSigBuilder.createAcroForm(PDDocument template) |
void |
PDFTemplateBuilder.createAcroForm(PDDocument template)
Creates Acro forms in the template.
|
void |
PDVisibleSigBuilder.createHolderFormStream(PDDocument template) |
void |
PDFTemplateBuilder.createHolderFormStream(PDDocument template) |
void |
PDVisibleSigBuilder.createImageFormStream(PDDocument template) |
void |
PDFTemplateBuilder.createImageFormStream(PDDocument template) |
void |
PDVisibleSigBuilder.createInnerFormStream(PDDocument template) |
void |
PDFTemplateBuilder.createInnerFormStream(PDDocument template) |
void |
PDVisibleSigBuilder.createSignatureImage(PDDocument template,
BufferedImage image) |
void |
PDFTemplateBuilder.createSignatureImage(PDDocument template,
BufferedImage image)
Creates signature image.
|
void |
PDVisibleSigBuilder.createVisualSignature(PDDocument template) |
void |
PDFTemplateBuilder.createVisualSignature(PDDocument template)
just to create visible signature
|
void |
PDFTemplateStructure.setTemplate(PDDocument template)
Wets PDDocument template.
|
Constructor and Description |
---|
PDVisibleSignDesigner(PDDocument document,
BufferedImage image,
int page)
Constructor.
|
PDVisibleSignDesigner(PDDocument document,
InputStream imageStream,
int page)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PDPage |
PDOutlineItem.findDestinationPage(PDDocument doc)
This method will attempt to find the page in this PDF document that this outline points to.
|
Constructor and Description |
---|
PDAcroForm(PDDocument doc)
Constructor.
|
PDAcroForm(PDDocument doc,
COSDictionary form)
Constructor.
|
Constructor and Description |
---|
PDFPageable(PDDocument document)
Creates a new PDFPageable.
|
PDFPageable(PDDocument document,
Orientation orientation)
Creates a new PDFPageable with the given page orientation.
|
PDFPageable(PDDocument document,
Orientation orientation,
boolean showPageBorder)
Creates a new PDFPageable with the given page orientation and with optional page borders
shown.
|
PDFPageable(PDDocument document,
Orientation orientation,
boolean showPageBorder,
float dpi)
Creates a new PDFPageable with the given page orientation and with optional page borders
shown.
|
PDFPrintable(PDDocument document)
Creates a new PDFPrintable.
|
PDFPrintable(PDDocument document,
Scaling scaling)
Creates a new PDFPrintable with the given page scaling.
|
PDFPrintable(PDDocument document,
Scaling scaling,
boolean showPageBorder)
Creates a new PDFPrintable with the given page scaling and with optional page borders shown.
|
PDFPrintable(PDDocument document,
Scaling scaling,
boolean showPageBorder,
float dpi)
Creates a new PDFPrintable with the given page scaling and with optional page borders shown.
|
PDFPrintable(PDDocument document,
Scaling scaling,
boolean showPageBorder,
float dpi,
boolean center)
Creates a new PDFPrintable with the given page scaling and with optional page borders shown.
|
Modifier and Type | Field and Description |
---|---|
protected PDDocument |
PDFRenderer.document |
Constructor and Description |
---|
PDFRenderer(PDDocument document)
Creates a new PDFRenderer.
|
Modifier and Type | Field and Description |
---|---|
protected PDDocument |
PDFTextStripper.document |
Modifier and Type | Method and Description |
---|---|
protected void |
PDFTextStripper.endDocument(PDDocument document)
This method is available for subclasses of this class.
|
String |
PDFTextStripper.getText(PDDocument doc)
This will return the text of a document.
|
protected void |
PDFTextStripper.startDocument(PDDocument document)
This method is available for subclasses of this class.
|
void |
PDFTextStripper.writeText(PDDocument doc,
Writer outputStream)
This will take a PDDocument and write the text of that document to the print writer.
|
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.