Uses of Class
org.apache.pdfbox.pdmodel.PDDocument
Packages that use PDDocument
Package
Description
AcroForms samples for PDFBox.
These examples show how to use the classes in the PDModel package.
These examples will show how to gain access to the PDF signature.
The packages in this package will show how to use the PDFBox util API.
The pdfparser package contains classes to parse PDF documents and objects within the document.
This is the persistence layer used to write the PDFBox documents to a stream.
The PDModel package represents a high level API for creating and manipulating PDF documents.
High level PD classes that are used throughout several packages are placed in the PDModel common package.
The file specification package defines classes that are used for the PDF File Specification logic.
The encryption package will handle the PDF document security handlers and the functionality of pluggable security handlers.
Classes to deal with font functionality in a PDF Document.
The PDModel graphics package deals with graphics states, operations, and parameters within the PDF document.
This package deals with colors that are stored in a PDF document.
This package deals with Form XObjects that are stored in a PDF document.
This package deals with images that are stored in a PDF document.
The annotation package contains classes that work with PDF annotation elements.
This is the visual signature part that help creating the visual representation for the digital signature.
The outline package allows for a PDF outline(bookmarks) to be created.
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
-
Uses of PDDocument in org.apache.pdfbox
Methods in org.apache.pdfbox that return PDDocumentModifier and TypeMethodDescriptionstatic PDDocumentLoader.loadPDF(byte[] input) Parses a PDF.static PDDocumentParses a PDF.static PDDocumentLoader.loadPDF(byte[] input, String password, InputStream keyStore, String alias) Parses a PDF.static PDDocumentLoader.loadPDF(byte[] input, String password, InputStream keyStore, String alias, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF.static PDDocumentParses a PDF.static PDDocumentParses a PDF.static PDDocumentLoader.loadPDF(File file, String password, InputStream keyStore, String alias) Parses a PDF.static PDDocumentLoader.loadPDF(File file, String password, InputStream keyStore, String alias, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF.static PDDocumentLoader.loadPDF(File file, String password, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF.static PDDocumentLoader.loadPDF(File file, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF.static PDDocumentLoader.loadPDF(RandomAccessRead randomAccessRead) Parses a PDF.static PDDocumentLoader.loadPDF(RandomAccessRead randomAccessRead, String password) Parses a PDF.static PDDocumentLoader.loadPDF(RandomAccessRead randomAccessRead, String password, InputStream keyStore, String alias) Parses a PDF.static PDDocumentLoader.loadPDF(RandomAccessRead randomAccessRead, String password, InputStream keyStore, String alias, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF.static PDDocumentLoader.loadPDF(RandomAccessRead randomAccessRead, String password, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF.static PDDocumentLoader.loadPDF(RandomAccessRead randomAccessRead, RandomAccessStreamCache.StreamCacheCreateFunction streamCacheCreateFunction) Parses a PDF. -
Uses of PDDocument in org.apache.pdfbox.debugger
Fields in org.apache.pdfbox.debugger declared as PDDocumentMethods in org.apache.pdfbox.debugger that return PDDocumentModifier and TypeMethodDescription(package private) abstract PDDocumentPDFDebugger.DocumentOpener.open()Override to load the actual input type (File, URL, stream), don't call it directly!(package private) final PDDocumentPDFDebugger.DocumentOpener.parse()Call this!Methods in org.apache.pdfbox.debugger with parameters of type PDDocumentModifier and TypeMethodDescriptionstatic StringPDFDebugger.getPageLabel(PDDocument document, int pageIndex) Convenience method to get the page label if available. -
Uses of PDDocument in org.apache.pdfbox.debugger.flagbitspane
Fields in org.apache.pdfbox.debugger.flagbitspane declared as PDDocumentModifier and TypeFieldDescriptionprivate final PDDocumentFlagBitsPane.documentprivate final PDDocumentSigFlag.documentConstructors in org.apache.pdfbox.debugger.flagbitspane with parameters of type PDDocumentModifierConstructorDescriptionFlagBitsPane(PDDocument document, COSDictionary dictionary, COSName flagType) Constructor.(package private)SigFlag(PDDocument document, COSDictionary acroFormDictionary) Constructor -
Uses of PDDocument in org.apache.pdfbox.debugger.pagepane
Fields in org.apache.pdfbox.debugger.pagepane declared as PDDocumentModifier and TypeFieldDescriptionprivate final PDDocumentDebugTextOverlay.documentprivate final PDDocumentPagePane.documentMethods in org.apache.pdfbox.debugger.pagepane with parameters of type PDDocumentModifier and TypeMethodDescriptionvoidDebugTextOverlay.DebugTextStripper.stripPage(PDDocument document, PDPage page, int pageIndex, float scale) Constructors in org.apache.pdfbox.debugger.pagepane with parameters of type PDDocumentModifierConstructorDescription(package private)DebugTextOverlay(PDDocument document, int pageIndex, float scale, boolean showTextStripper, boolean showTextStripperBeads, boolean showFontBBox, boolean showGlyphBounds) PagePane(PDDocument document, COSDictionary pageDict, JLabel statuslabel) -
Uses of PDDocument in org.apache.pdfbox.debugger.ui
Fields in org.apache.pdfbox.debugger.ui declared as PDDocumentMethods in org.apache.pdfbox.debugger.ui with parameters of type PDDocumentModifier and TypeMethodDescriptionbooleanFileOpenSaveDialog.saveDocument(PDDocument document, String extension) Saves document into a .pdf file after the user is prompted to choose the destination.Constructors in org.apache.pdfbox.debugger.ui with parameters of type PDDocumentModifierConstructorDescriptionDocumentEntry(PDDocument doc, String filename) PDFTreeModel(PDDocument doc) Constructor to take a document.XrefEntries(PDDocument document) -
Uses of PDDocument in org.apache.pdfbox.examples.interactive.form
Methods in org.apache.pdfbox.examples.interactive.form with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate static PDAppearanceStreamCreateCheckBox.createAppearanceStream(PDDocument document, PDAnnotationWidget widget, boolean on, PDFont font) private static PDAppearanceStreamCreateRadioButtons.createAppearanceStream(PDDocument document, PDAnnotationWidget widget, boolean on) voidPrintFields.printFields(PDDocument pdfDocument) This will print all the fields from the document.voidSetField.setField(PDDocument pdfDocument, String name, String value) This will set a single field in the document. -
Uses of PDDocument in org.apache.pdfbox.examples.pdmodel
Methods in org.apache.pdfbox.examples.pdmodel with parameters of type PDDocumentModifier and TypeMethodDescriptionvoidPrintBookmarks.printBookmark(PDDocument document, PDOutlineNode bookmark, String indentation) This will print the documents bookmarks to System.out.voidPrintDocumentMetaData.printMetadata(PDDocument document) This will print the documents data to System.out.private static voidAddAnnotations.showPageNo(PDDocument document, PDPage page, String pageText) -
Uses of PDDocument in org.apache.pdfbox.examples.printing
Methods in org.apache.pdfbox.examples.printing with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate static voidPrinting.print(PDDocument document) Prints the document at its actual size.private static voidPrinting.printWithAttributes(PDDocument document) Prints using custom PrintRequestAttribute values.private static voidPrinting.printWithDialog(PDDocument document) Prints with a print preview dialog.private static voidPrinting.printWithDialogAndAttributes(PDDocument document) Prints with a print preview dialog and custom PrintRequestAttribute values.private static voidPrinting.printWithPaper(PDDocument document) Prints using a custom page size and custom margins.Constructors in org.apache.pdfbox.examples.printing with parameters of type PDDocument -
Uses of PDDocument in org.apache.pdfbox.examples.rendering
Constructors in org.apache.pdfbox.examples.rendering with parameters of type PDDocument -
Uses of PDDocument in org.apache.pdfbox.examples.signature
Fields in org.apache.pdfbox.examples.signature declared as PDDocumentModifier and TypeFieldDescriptionprivate PDDocumentCreateVisibleSignature.docprivate PDDocumentCreateEmbeddedTimeStamp.documentMethods in org.apache.pdfbox.examples.signature with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate voidShowSignature.analyseDSS(PDDocument document) Analyzes the DSS-Dictionary (Document Security Store) of the document.static voidSigUtils.checkCrossReferenceTable(PDDocument doc) Look for gaps in the cross reference table and display warnings if any found.private PDRectangleCreateVisibleSignature2.createSignatureRectangle(PDDocument doc, Rectangle2D humanRect) private InputStreamCreateVisibleSignature2.createVisualSignatureTemplate(PDDocument srcDoc, int pageNum, PDRectangle rect, PDSignature signature) private PDSignatureCreateVisibleSignature.findExistingSignature(PDDocument doc, String sigFieldName) static PDSignatureSigUtils.getLastRelevantSignature(PDDocument document) Gets the last relevant signature in the document, i.e.static intSigUtils.getMDPPermission(PDDocument doc) Get the access permissions granted for this document in the DocMDP transform parameters dictionary.static voidSigUtils.setMDPPermission(PDDocument doc, PDSignature signature, int accessPermissions) Set the "modification detection and prevention" permissions granted for this document in the DocMDP transform parameters dictionary.voidCreateSignature.signDetached(PDDocument document, OutputStream output) voidCreateSignedTimeStamp.signDetached(PDDocument document, OutputStream output) Prepares the TimeStamp-Signature and starts the saving-process. -
Uses of PDDocument in org.apache.pdfbox.examples.signature.validation
Fields in org.apache.pdfbox.examples.signature.validation declared as PDDocument -
Uses of PDDocument in org.apache.pdfbox.examples.util
Methods in org.apache.pdfbox.examples.util with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate static voidAddWatermarkText.addWatermarkText(PDDocument doc, PDPage page, PDFont font, String text) voidPDFHighlighter.generateXMLHighlight(PDDocument pdDocument, String[] sWords, Writer xmlOutput) Generate an XML highlight string based on the PDF.voidPDFHighlighter.generateXMLHighlight(PDDocument pdDocument, String highlightWord, Writer xmlOutput) Generate an XML highlight string based on the PDF.Constructors in org.apache.pdfbox.examples.util with parameters of type PDDocumentModifierConstructorDescriptionDrawPrintTextLocations(PDDocument document, String filename) Instantiate a new PDFTextStripper object. -
Uses of PDDocument in org.apache.pdfbox.multipdf
Fields in org.apache.pdfbox.multipdf declared as PDDocumentModifier and TypeFieldDescriptionprivate PDDocumentOverlay.allPagesOverlayDocumentprivate PDDocumentSplitter.currentDestinationDocumentprivate PDDocumentOverlay.defaultOverlayDocumentprivate final PDDocumentPDFCloneUtility.destinationprivate PDDocumentOverlay.evenPageOverlayDocumentprivate PDDocumentOverlay.firstPageOverlayDocumentprivate PDDocumentOverlay.inputPDFDocumentprivate PDDocumentOverlay.lastPageOverlayDocumentprivate PDDocumentOverlay.oddPageOverlayDocumentprivate final PDDocumentPageExtractor.sourceDocumentprivate PDDocumentSplitter.sourceDocumentprivate final PDDocumentLayerUtility.targetDocFields in org.apache.pdfbox.multipdf with type parameters of type PDDocumentModifier and TypeFieldDescriptionprivate List<PDDocument> Splitter.destinationDocumentsprivate final Set<PDDocument> Overlay.openDocumentsSetMethods in org.apache.pdfbox.multipdf that return PDDocumentModifier and TypeMethodDescriptionprotected PDDocumentSplitter.createNewDocument()Create a new document to write the split contents to.PageExtractor.extract()This will take a document and extract the desired pages into a new document.(package private) PDDocumentPDFCloneUtility.getDestination()Returns the destination PDF document this cloner instance is set up for.protected final PDDocumentSplitter.getDestinationDocument()The source PDF document.LayerUtility.getDocument()Returns the PDF document we work on.protected final PDDocumentSplitter.getSourceDocument()The source PDF document.private PDDocumentThis will add overlays to a document.Overlay.overlayDocuments(Map<Integer, PDDocument> specificPageOverlayDocumentMap) This will add overlays documents to a document.Methods in org.apache.pdfbox.multipdf that return types with arguments of type PDDocumentModifier and TypeMethodDescriptionSplitter.split(PDDocument document) This will take a document and split into several other documents.Methods in org.apache.pdfbox.multipdf with parameters of type PDDocumentModifier and TypeMethodDescriptionvoidPDFMergerUtility.appendDocument(PDDocument destination, PDDocument source) append all pages from source to destination.private voidSplitter.cloneStructureTree(PDDocument destinationDocument) Clone the structure tree from the source to the current destination document.private Overlay.LayoutPageOverlay.createLayoutPageFromDocument(PDDocument doc) Create a LayoutPage object from the first page of the given document.private Map<Integer, Overlay.LayoutPage> Overlay.createPageOverlayLayoutPageMap(PDDocument doc) private voidSplitter.fixDestinations(PDDocument destinationDocument) Replace the page destinations, if the source and destination pages are in the target document.private voidLayerUtility.importOcProperties(PDDocument srcDoc) Imports OCProperties from source document to target document so hidden layers can still be hidden after import.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.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.private voidOverlay.processPages(PDDocument document) voidOverlay.setAllPagesOverlayPDF(PDDocument allPagesOverlayPDF) Sets the all pages overlay PDF.voidOverlay.setDefaultOverlayPDF(PDDocument defaultOverlayPDF) Sets the default overlay PDF.voidOverlay.setEvenPageOverlayPDF(PDDocument evenPageOverlayPDF) Sets the even page overlay PDF.voidOverlay.setFirstPageOverlayPDF(PDDocument firstPageOverlayPDF) Sets the first page overlay PDF.voidOverlay.setInputPDF(PDDocument inputPDF) Sets the PDF to be overlaid.voidOverlay.setLastPageOverlayPDF(PDDocument lastPageOverlayPDF) Sets the last page overlay PDF.voidOverlay.setOddPageOverlayPDF(PDDocument oddPageOverlayPDF) Sets the odd page overlay PDF.Splitter.split(PDDocument document) This will take a document and split into several other documents.Method parameters in org.apache.pdfbox.multipdf with type arguments of type PDDocumentModifier and TypeMethodDescriptionOverlay.overlayDocuments(Map<Integer, PDDocument> specificPageOverlayDocumentMap) This will add overlays documents to a document.Constructors in org.apache.pdfbox.multipdf with parameters of type PDDocumentModifierConstructorDescriptionLayerUtility(PDDocument targetDoc) Creates a new instance.PageExtractor(PDDocument sourceDocument) Creates a new instance of PageExtractorPageExtractor(PDDocument sourceDocument, int startPage, int endPage) Creates a new instance of PageExtractorprotectedPDFCloneUtility(PDDocument dest) Creates a new instance for the given target document. -
Uses of PDDocument in org.apache.pdfbox.pdfparser
Methods in org.apache.pdfbox.pdfparser that return PDDocumentModifier and TypeMethodDescriptionprotected PDDocumentPDFParser.createDocument()Create the resulting document.static PDDocumentDeprecated.static PDDocumentDeprecated.useLoader.loadPDF(File, String)insteadPDFParser.parse()This will parse the stream and populate the PDDocument object.PDFParser.parse(boolean lenient) This will parse the stream and populate the PDDocument object. -
Uses of PDDocument in org.apache.pdfbox.pdfwriter
Fields in org.apache.pdfbox.pdfwriter declared as PDDocumentMethods in org.apache.pdfbox.pdfwriter with parameters of type PDDocumentModifier and TypeMethodDescriptionvoidCOSWriter.write(PDDocument doc) This will write the pdf document.voidCOSWriter.write(PDDocument doc, SignatureInterface signInterface) This will write the pdf document. -
Uses of PDDocument in org.apache.pdfbox.pdfwriter.compress
Fields in org.apache.pdfbox.pdfwriter.compress declared as PDDocumentConstructors in org.apache.pdfbox.pdfwriter.compress with parameters of type PDDocumentModifierConstructorDescriptionCOSWriterCompressionPool(PDDocument document, CompressParameters parameters) Constructs an object that can be used to compress the contents of a givenPDDocument. -
Uses of PDDocument in org.apache.pdfbox.pdmodel
Fields in org.apache.pdfbox.pdmodel declared as PDDocumentModifier and TypeFieldDescriptionprotected final PDDocumentPDAbstractContentStream.documentprivate final PDDocumentPDDocumentCatalog.documentprivate final PDDocumentPDPageTree.documentConstructors in org.apache.pdfbox.pdmodel with parameters of type PDDocumentModifierConstructorDescription(package private)PDAbstractContentStream(PDDocument document, OutputStream outputStream, PDResources resources) Create a new appearance stream.protectedConstructor.protectedPDDocumentCatalog(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, 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.privatePDPageContentStream(PDDocument document, PDPage sourcePage, PDPageContentStream.AppendMode appendContent, boolean compress, boolean resetContext, PDStream stream, PDResources resources) (package private)PDPageTree(COSDictionary root, PDDocument document) Constructor for reading. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.common
Fields in org.apache.pdfbox.pdmodel.common declared as PDDocumentMethods in org.apache.pdfbox.pdmodel.common with parameters of type PDDocumentModifier and TypeMethodDescriptionstatic PDObjectStreamPDObjectStream.createStream(PDDocument document) This will create a new PDObjectStream object.Constructors in org.apache.pdfbox.pdmodel.common with parameters of type PDDocumentModifierConstructorDescriptionPDMetadata(PDDocument document) This will create a new PDMetadata object with the /Type and /Subtype entries for a document level metadata 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 empty PDStream object.PDStream(PDDocument doc, InputStream input) Constructor.PDStream(PDDocument doc, InputStream input, COSArray filters) Constructor.privatePDStream(PDDocument doc, InputStream input, COSBase filters) Constructor.PDStream(PDDocument doc, InputStream input, COSName filter) Constructor. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.common.filespecification
Constructors in org.apache.pdfbox.pdmodel.common.filespecification with parameters of type PDDocumentModifierConstructorDescriptionPDEmbeddedFile(PDDocument document) PDEmbeddedFile(PDDocument doc, InputStream str) PDEmbeddedFile(PDDocument doc, InputStream input, COSName filter) -
Uses of PDDocument in org.apache.pdfbox.pdmodel.encryption
Methods in org.apache.pdfbox.pdmodel.encryption with parameters of type PDDocumentModifier and TypeMethodDescriptionvoidPublicKeySecurityHandler.prepareDocumentForEncryption(PDDocument doc) Prepare the document for encryption.abstract voidSecurityHandler.prepareDocumentForEncryption(PDDocument doc) Prepare the document for encryption.voidStandardSecurityHandler.prepareDocumentForEncryption(PDDocument document) Prepare document for encryption.private voidStandardSecurityHandler.prepareEncryptionDictRev234(String ownerPassword, String userPassword, PDEncryption encryptionDictionary, int permissionInt, PDDocument document, int revision, int length) -
Uses of PDDocument in org.apache.pdfbox.pdmodel.fixup
Fields in org.apache.pdfbox.pdmodel.fixup declared as PDDocumentConstructors in org.apache.pdfbox.pdmodel.fixup with parameters of type PDDocumentModifierConstructorDescriptionprotectedAbstractFixup(PDDocument document) AcroFormDefaultFixup(PDDocument document) -
Uses of PDDocument in org.apache.pdfbox.pdmodel.fixup.processor
Fields in org.apache.pdfbox.pdmodel.fixup.processor declared as PDDocumentConstructors in org.apache.pdfbox.pdmodel.fixup.processor with parameters of type PDDocumentModifierConstructorDescriptionprotectedAbstractProcessor(PDDocument document) AcroFormDefaultsProcessor(PDDocument document) AcroFormOrphanWidgetsProcessor(PDDocument document) -
Uses of PDDocument in org.apache.pdfbox.pdmodel.font
Fields in org.apache.pdfbox.pdmodel.font declared as PDDocumentModifier and TypeFieldDescriptionprivate final PDDocumentPDCIDFontType2Embedder.documentprivate final PDDocumentTrueTypeEmbedder.documentMethods in org.apache.pdfbox.pdmodel.font with parameters of type PDDocumentModifier and TypeMethodDescriptionstatic PDTrueTypeFontPDTrueTypeFont.load(PDDocument doc, File file, Encoding encoding) Loads a TTF to be embedded into a document as a simple font.static PDTrueTypeFontPDTrueTypeFont.load(PDDocument doc, InputStream input, Encoding encoding) Loads a TTF to be embedded into a document as a simple font.static PDTrueTypeFontPDTrueTypeFont.load(PDDocument doc, TrueTypeFont ttf, Encoding encoding) Loads a TTF to be embedded into a document as a simple font.static PDTrueTypeFontPDTrueTypeFont.load(PDDocument doc, RandomAccessRead randomAccessRead, Encoding encoding) Loads a TTF to be embedded into a document as a simple font.static PDType0FontPDType0Font.load(PDDocument doc, File file) Loads a TTF to be embedded and subset into a document as a Type 0 font.static PDType0FontPDType0Font.load(PDDocument doc, InputStream input) Loads a TTF to be embedded and subset into a document as a Type 0 font.static PDType0FontPDType0Font.load(PDDocument doc, InputStream input, boolean embedSubset) Loads a TTF to be embedded into a document as a Type 0 font.static PDType0FontPDType0Font.load(PDDocument doc, TrueTypeFont ttf, boolean embedSubset) Loads a TTF to be embedded into a document as a Type 0 font.static PDType0FontPDType0Font.load(PDDocument doc, RandomAccessRead randomAccessRead, boolean embedSubset, boolean vertical) Loads a TTF to be embedded into a document as a Type 0 font.static PDType0FontPDType0Font.loadVertical(PDDocument doc, File file) Loads a TTF to be embedded into a document as a vertical Type 0 font.static PDType0FontPDType0Font.loadVertical(PDDocument doc, InputStream input) Loads a TTF to be embedded into a document as a vertical Type 0 font.static PDType0FontPDType0Font.loadVertical(PDDocument doc, InputStream input, boolean embedSubset) Loads a TTF to be embedded into a document as a vertical Type 0 font.static PDType0FontPDType0Font.loadVertical(PDDocument doc, TrueTypeFont ttf, boolean embedSubset) Loads a TTF to be embedded into a document as a vertical Type 0 font.Constructors in org.apache.pdfbox.pdmodel.font with parameters of type PDDocumentModifierConstructorDescription(package private)PDCIDFontType2Embedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset, PDType0Font parent, boolean vertical) Creates a new TrueType font embedder for the given TTF as a PDCIDFontType2.privatePDTrueTypeFont(PDDocument document, TrueTypeFont ttf, Encoding encoding, boolean closeTTF) Creates a new TrueType font for embedding.(package private)PDTrueTypeFontEmbedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, Encoding encoding) Creates a new TrueType font embedder for the given TTF as a PDTrueTypeFont.privatePDType0Font(PDDocument document, TrueTypeFont ttf, boolean embedSubset, boolean closeTTF, boolean vertical) Private.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.(package private)PDType1FontEmbedder(PDDocument doc, COSDictionary dict, InputStream pfbStream, Encoding encoding) This will load a PFB to be embedded into a document.(package private)TrueTypeEmbedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset) Creates a new TrueType font for embedding. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.graphics
Constructors in org.apache.pdfbox.pdmodel.graphics with parameters of type PDDocumentModifierConstructorDescriptionprotectedPDXObject(PDDocument document, COSName subtype) Creates a new XObject of the given subtype for writing. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.graphics.color
Methods in org.apache.pdfbox.pdmodel.graphics.color with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate PDStreamPDOutputIntent.configureOutputProfile(PDDocument doc, InputStream colorProfile) Constructors in org.apache.pdfbox.pdmodel.graphics.color with parameters of type PDDocumentModifierConstructorDescriptionPDICCBased(PDDocument doc) Creates a new ICC color space with an empty stream.PDOutputIntent(PDDocument doc, InputStream colorProfile) Create an output intent of GTS_PDFA1 subtype. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.graphics.form
Constructors in org.apache.pdfbox.pdmodel.graphics.form with parameters of type PDDocumentModifierConstructorDescriptionPDFormXObject(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. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.graphics.image
Fields in org.apache.pdfbox.pdmodel.graphics.image declared as PDDocumentModifier and TypeFieldDescriptionprivate final PDDocumentLosslessFactory.PredictorEncoder.documentMethods in org.apache.pdfbox.pdmodel.graphics.image with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate static PDImageXObjectPNGConverter.buildImageObject(PDDocument document, PNGConverter.PNGConverterState state) Build the base image object from the IDATs and profile informationprivate static PDImageXObjectPNGConverter.buildIndexImage(PDDocument doc, PNGConverter.PNGConverterState state) Build a indexed imageprivate static PDImageXObjectPNGConverter.buildTransparencyMaskFromIndexedData(PDDocument doc, PDImageXObject image, PNGConverter.PNGConverterState state) private static PDImageXObjectPNGConverter.convertPng(PDDocument doc, PNGConverter.PNGConverterState state) Convert the image using the state.(package private) static PDImageXObjectPNGConverter.convertPNGImage(PDDocument doc, byte[] imageData) Try to convert a PNG into a PDImageXObject.private static COSStreamPNGConverter.createCOSStreamwithIccProfile(PDDocument document, PDColorSpace colorSpace, PNGConverter.PNGConverterState state) static PDImageXObjectCCITTFactory.createFromByteArray(PDDocument document, byte[] byteArray) Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file stored in a byte array.static PDImageXObjectCCITTFactory.createFromByteArray(PDDocument document, byte[] byteArray, int number) Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file stored in a byte array.CustomFactory.createFromByteArray(PDDocument document, byte[] byteArray) Creates aPDImageXObjectfrom the given image byte array and document context.static PDImageXObjectJPEGFactory.createFromByteArray(PDDocument document, byte[] byteArray) Creates a new JPEG Image XObject from a byte array containing JPEG data.static PDImageXObjectPDImageXObject.createFromByteArray(PDDocument document, byte[] byteArray, String name) Create a PDImageXObject from bytes of an image file.static PDImageXObjectPDImageXObject.createFromByteArray(PDDocument document, byte[] byteArray, String name, CustomFactory customFactory) Create a PDImageXObject from an image byte array.static PDImageXObjectCCITTFactory.createFromFile(PDDocument document, File file) Creates a new CCITT Fax compressed image XObject from the first image of a TIFF file.static PDImageXObjectCCITTFactory.createFromFile(PDDocument document, File file, int number) Creates a new CCITT Fax compressed image XObject from a specific image of a TIFF file.static PDImageXObjectPDImageXObject.createFromFile(String imagePath, PDDocument doc) Create a PDImageXObject from an image file, seePDImageXObject.createFromFileByExtension(File, PDDocument)for more details.static PDImageXObjectPDImageXObject.createFromFileByContent(File file, PDDocument doc) Create a PDImageXObject from an image file.static PDImageXObjectPDImageXObject.createFromFileByExtension(File file, PDDocument doc) Create a PDImageXObject from an image file.private static PDImageXObjectLosslessFactory.createFromGrayImage(BufferedImage image, PDDocument document) static PDImageXObjectCCITTFactory.createFromImage(PDDocument document, BufferedImage image) Creates a new CCITT group 4 (T6) compressed image XObject from a b/w BufferedImage.static PDImageXObjectJPEGFactory.createFromImage(PDDocument document, BufferedImage image) Creates a new JPEG PDImageXObject from a BufferedImage.static PDImageXObjectJPEGFactory.createFromImage(PDDocument document, BufferedImage image, float quality) Creates a new JPEG PDImageXObject from a BufferedImage and a given quality.static PDImageXObjectJPEGFactory.createFromImage(PDDocument document, BufferedImage image, float quality, int dpi) Creates a new JPEG Image XObject from a BufferedImage, a given quality and dpi metadata.static PDImageXObjectLosslessFactory.createFromImage(PDDocument document, BufferedImage image) Creates a new lossless encoded image XObject from a BufferedImage.private static PDImageXObjectCCITTFactory.createFromRandomAccessImpl(PDDocument document, RandomAccessRead reader, int number) Creates a new CCITT Fax compressed image XObject from a TIFF file.private static PDImageXObjectLosslessFactory.createFromRGBImage(BufferedImage image, PDDocument document) static PDImageXObjectJPEGFactory.createFromStream(PDDocument document, InputStream stream) Creates a new JPEG Image XObject from an input stream containing JPEG data.private static PDImageXObjectJPEGFactory.createJPEG(PDDocument document, BufferedImage image, float quality, int dpi) private static COSStreamPDImageXObject.createRawStream(PDDocument document, InputStream rawInput) Creates a COS stream from raw (encoded) data.private static PDImageXObjectCCITTFactory.prepareImageXObject(PDDocument document, byte[] byteArray, int width, int height, PDColorSpace initColorSpace) (package private) static PDImageXObjectLosslessFactory.prepareImageXObject(PDDocument document, byte[] byteArray, int width, int height, int bitsPerComponent, PDColorSpace initColorSpace) Create a PDImageXObject using the Flate filter.private static voidPNGConverter.setupIndexedColorSpace(PDDocument doc, PNGConverter.Chunk lookupTable, PDImageXObject image, int highVal) Constructors in org.apache.pdfbox.pdmodel.graphics.image with parameters of type PDDocumentModifierConstructorDescriptionPDImageXObject(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.(package private)PredictorEncoder(PDDocument document, BufferedImage image) Initialize the encoder and set all final fields -
Uses of PDDocument in org.apache.pdfbox.pdmodel.interactive.annotation
Methods in org.apache.pdfbox.pdmodel.interactive.annotation with parameters of type PDDocumentModifier and TypeMethodDescriptionvoidPDAnnotation.constructAppearances(PDDocument document) Create the appearance entry for this annotation.voidPDAnnotationCaret.constructAppearances(PDDocument document) voidPDAnnotationCircle.constructAppearances(PDDocument document) voidPDAnnotationFileAttachment.constructAppearances(PDDocument document) voidPDAnnotationFreeText.constructAppearances(PDDocument document) voidPDAnnotationHighlight.constructAppearances(PDDocument document) voidPDAnnotationInk.constructAppearances(PDDocument document) voidPDAnnotationLine.constructAppearances(PDDocument document) voidPDAnnotationLink.constructAppearances(PDDocument document) voidPDAnnotationPolygon.constructAppearances(PDDocument document) voidPDAnnotationPolyline.constructAppearances(PDDocument document) voidPDAnnotationSound.constructAppearances(PDDocument document) voidPDAnnotationSquare.constructAppearances(PDDocument document) voidPDAnnotationSquiggly.constructAppearances(PDDocument document) voidPDAnnotationStrikeout.constructAppearances(PDDocument document) voidPDAnnotationText.constructAppearances(PDDocument document) voidPDAnnotationUnderline.constructAppearances(PDDocument document) Constructors in org.apache.pdfbox.pdmodel.interactive.annotation with parameters of type PDDocumentModifierConstructorDescriptionPDAppearanceStream(PDDocument document) Creates a Form Image XObject for writing, in the given document. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.interactive.annotation.handlers
Fields in org.apache.pdfbox.pdmodel.interactive.annotation.handlers declared as PDDocumentConstructors in org.apache.pdfbox.pdmodel.interactive.annotation.handlers with parameters of type PDDocumentModifierConstructorDescriptionPDAbstractAppearanceHandler(PDAnnotation annotation, PDDocument document) PDCaretAppearanceHandler(PDAnnotation annotation, PDDocument document) PDCircleAppearanceHandler(PDAnnotation annotation, PDDocument document) PDFileAttachmentAppearanceHandler(PDAnnotation annotation, PDDocument document) PDFreeTextAppearanceHandler(PDAnnotation annotation, PDDocument document) PDHighlightAppearanceHandler(PDAnnotation annotation, PDDocument document) PDInkAppearanceHandler(PDAnnotation annotation, PDDocument document) PDLineAppearanceHandler(PDAnnotation annotation, PDDocument document) PDLinkAppearanceHandler(PDAnnotation annotation, PDDocument document) PDPolygonAppearanceHandler(PDAnnotation annotation, PDDocument document) PDPolylineAppearanceHandler(PDAnnotation annotation, PDDocument document) PDSoundAppearanceHandler(PDAnnotation annotation, PDDocument document) PDSquareAppearanceHandler(PDAnnotation annotation, PDDocument document) PDSquigglyAppearanceHandler(PDAnnotation annotation, PDDocument document) PDStrikeoutAppearanceHandler(PDAnnotation annotation, PDDocument document) PDTextAppearanceHandler(PDAnnotation annotation, PDDocument document) PDUnderlineAppearanceHandler(PDAnnotation annotation, PDDocument document) -
Uses of PDDocument in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible
Fields in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible declared as PDDocumentMethods in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible that return PDDocumentMethods in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate voidPDVisibleSignDesigner.calculatePageSize(PDDocument document, int page) Each page of document can be different sizes.voidPDFTemplateBuilder.closeTemplate(PDDocument template) Closes templatevoidPDVisibleSigBuilder.closeTemplate(PDDocument template) voidPDFTemplateBuilder.createAcroForm(PDDocument template) Creates Acro forms in the template.voidPDVisibleSigBuilder.createAcroForm(PDDocument template) voidPDFTemplateBuilder.createHolderFormStream(PDDocument template) Create a holder for the form stream.voidPDVisibleSigBuilder.createHolderFormStream(PDDocument template) voidPDFTemplateBuilder.createImageFormStream(PDDocument template) Create image form stream.voidPDVisibleSigBuilder.createImageFormStream(PDDocument template) voidPDFTemplateBuilder.createInnerFormStream(PDDocument template) Create a holder for the inner form stream.voidPDVisibleSigBuilder.createInnerFormStream(PDDocument template) voidPDFTemplateBuilder.createSignatureImage(PDDocument template, BufferedImage image) Creates signature image.voidPDVisibleSigBuilder.createSignatureImage(PDDocument template, BufferedImage image) voidPDFTemplateBuilder.createVisualSignature(PDDocument template) just to create visible signaturevoidPDVisibleSigBuilder.createVisualSignature(PDDocument template) voidPDFTemplateStructure.setTemplate(PDDocument template) Wets PDDocument template.Constructors in org.apache.pdfbox.pdmodel.interactive.digitalsignature.visible with parameters of type PDDocumentModifierConstructorDescriptionPDVisibleSignDesigner(PDDocument document, BufferedImage image, int page) Constructor.PDVisibleSignDesigner(PDDocument document, InputStream imageStream, int page) Constructor. -
Uses of PDDocument in org.apache.pdfbox.pdmodel.interactive.form
Fields in org.apache.pdfbox.pdmodel.interactive.form declared as PDDocumentMethods in org.apache.pdfbox.pdmodel.interactive.form that return PDDocumentModifier and TypeMethodDescription(package private) PDDocumentPDAcroForm.getDocument()This will get the document associated with this form.Constructors in org.apache.pdfbox.pdmodel.interactive.form with parameters of type PDDocumentModifierConstructorDescriptionPDAcroForm(PDDocument doc) Constructor.PDAcroForm(PDDocument doc, COSDictionary form) Constructor. -
Uses of PDDocument in org.apache.pdfbox.preflight
Subclasses of PDDocument in org.apache.pdfbox.preflight -
Uses of PDDocument in org.apache.pdfbox.preflight.metadata
Methods in org.apache.pdfbox.preflight.metadata with parameters of type PDDocumentModifier and TypeMethodDescriptionSynchronizedMetaDataValidation.validateMetadataSynchronization(PDDocument document, XMPMetadata metadata) Check if document information entries and XMP information are synchronizedUniquePropertiesValidation.validatePropertiesUniqueness(PDDocument document, XMPMetadata metadata) Checks that certain metadata properties are unique. -
Uses of PDDocument in org.apache.pdfbox.preflight.parser
Methods in org.apache.pdfbox.preflight.parser that return PDDocumentModifier and TypeMethodDescriptionprotected PDDocumentPreflightParser.createDocument()PreflightParser.parse()Parse the given file and check if it is a confirming file according to the given format.PreflightParser.parse(Format format, PreflightConfiguration config) Parse the given file and check if it is a confirming file according to the given format. -
Uses of PDDocument in org.apache.pdfbox.preflight.process
Methods in org.apache.pdfbox.preflight.process with parameters of type PDDocumentModifier and TypeMethodDescriptionprotected List<ValidationResult.ValidationError> MetadataValidationProcess.checkStreamFilterUsage(PDDocument doc) Check if metadata dictionary has no stream filterprivate InputStreamMetadataValidationProcess.getXpacket(PDDocument document, PreflightContext ctx) Return the xpacket from the dictionary's stream -
Uses of PDDocument in org.apache.pdfbox.printing
Fields in org.apache.pdfbox.printing declared as PDDocumentConstructors in org.apache.pdfbox.printing with parameters of type PDDocumentModifierConstructorDescriptionPDFPageable(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.PDFPageable(PDDocument document, Orientation orientation, boolean showPageBorder, float dpi, boolean center) 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.PDFPrintable(PDDocument document, Scaling scaling, boolean showPageBorder, float dpi, boolean center, PDFRenderer renderer) Creates a new PDFPrintable with the given page scaling and with optional page borders shown. -
Uses of PDDocument in org.apache.pdfbox.rendering
Fields in org.apache.pdfbox.rendering declared as PDDocumentConstructors in org.apache.pdfbox.rendering with parameters of type PDDocument -
Uses of PDDocument in org.apache.pdfbox.text
Fields in org.apache.pdfbox.text declared as PDDocumentMethods in org.apache.pdfbox.text with parameters of type PDDocumentModifier and TypeMethodDescriptionprotected voidPDFTextStripper.endDocument(PDDocument document) This method is available for subclasses of this class.PDFTextStripper.getText(PDDocument doc) This will return the text of a document.protected voidPDFTextStripper.startDocument(PDDocument document) This method is available for subclasses of this class.voidPDFTextStripper.writeText(PDDocument doc, Writer outputStream) This will take a PDDocument and write the text of that document to the print writer. -
Uses of PDDocument in org.apache.pdfbox.tools
Methods in org.apache.pdfbox.tools that return PDDocumentModifier and TypeMethodDescriptionTextToPDF.createPDFFromText(Reader text) Create a PDF document with some text.Methods in org.apache.pdfbox.tools with parameters of type PDDocumentModifier and TypeMethodDescriptionprivate static voidPDFToImage.changeCropBox(PDDocument document, float a, float b, float c, float d) voidTextToPDF.createPDFFromText(PDDocument doc, Reader text) Create a PDF document with some text.private PrintRequestAttributeSetPrintPDF.createPrintRequestAttributeSet(PDDocument document) voidPDFText2HTML.endDocument(PDDocument document) This method is available for subclasses of this class.private voidExtractText.extractPages(int startPage, int endPage, PDFTextStripper stripper, PDDocument document, Writer output, boolean rotationMagic, boolean alwaysNext) voidImportFDF.importFDF(PDDocument pdfDocument, FDFDocument fdfDocument) This will takes the values from the fdf document and import them into the PDF document.voidImportXFDF.importFDF(PDDocument pdfDocument, FDFDocument fdfDocument) This will takes the values from the fdf document and import them into the PDF document.protected voidPDFText2HTML.startDocument(PDDocument document)
Loader.loadPDF(File)instead