Uses of Class
com.itextpdf.kernel.pdf.PdfDocument
Packages that use PdfDocument
Package
Description
-
Uses of PdfDocument in com.itextpdf.barcodes
Fields in com.itextpdf.barcodes declared as PdfDocumentMethods in com.itextpdf.barcodes with parameters of type PdfDocumentModifier and TypeMethodDescriptionBarcode1D.createFormXObject
(Color barColor, Color textColor, PdfDocument document) Creates a PdfFormXObject with the barcode.Barcode1D.createFormXObject
(PdfDocument document) Creates a PdfFormXObject with the barcode.abstract PdfFormXObject
Barcode2D.createFormXObject
(Color foreground, PdfDocument document) Creates a PdfFormXObject with the barcode.Barcode2D.createFormXObject
(PdfDocument document) Creates a PdfFormXObject with the barcode.BarcodeDataMatrix.createFormXObject
(Color foreground, float moduleSide, PdfDocument document) Creates a PdfFormXObject with the barcode with given module width and module height.BarcodeDataMatrix.createFormXObject
(Color foreground, PdfDocument document) BarcodePDF417.createFormXObject
(Color foreground, float moduleWidth, float moduleHeight, PdfDocument document) Creates a PdfFormXObject with the barcode with given module width and module height.BarcodePDF417.createFormXObject
(Color foreground, PdfDocument document) Creates a PdfFormXObject with the barcode.BarcodeQRCode.createFormXObject
(Color foreground, float moduleSize, PdfDocument document) Creates a PdfFormXObject with the barcode.BarcodeQRCode.createFormXObject
(Color foreground, PdfDocument document) Creates a PdfFormXObject with the barcode.Constructors in com.itextpdf.barcodes with parameters of type PdfDocumentModifierConstructorDescriptionBarcode128
(PdfDocument document) Creates new Barcode128.Barcode128
(PdfDocument document, PdfFont font) Creates new Barcode128, which will use the provided fontprotected
Barcode1D
(PdfDocument document) Barcode39
(PdfDocument document) Creates a new Barcode39.Barcode39
(PdfDocument document, PdfFont font) Creates a new Barcode39.BarcodeCodabar
(PdfDocument document) Creates a new BarcodeCodabar.BarcodeCodabar
(PdfDocument document, PdfFont font) Creates a new BarcodeCodabar.BarcodeEAN
(PdfDocument document) Creates new BarcodeEAN.BarcodeEAN
(PdfDocument document, PdfFont font) Creates new BarcodeEANBarcodeInter25
(PdfDocument document) Creates new BarcodeInter25.BarcodeInter25
(PdfDocument document, PdfFont font) Creates new BarcodeInter25BarcodeMSI
(PdfDocument document) Creates a new BarcodeMSI.BarcodeMSI
(PdfDocument document, PdfFont font) Creates a new BarcodeMSIBarcodePostnet
(PdfDocument document) -
Uses of PdfDocument in com.itextpdf.forms
Fields in com.itextpdf.forms declared as PdfDocumentModifier and TypeFieldDescriptionprotected PdfDocument
PdfAcroForm.document
The PdfDocument to which the PdfAcroForm belongs.Methods in com.itextpdf.forms that return PdfDocumentModifier and TypeMethodDescriptionPdfAcroForm.getPdfDocument()
Gets thePdfDocument
thisPdfAcroForm
belongs to.Methods in com.itextpdf.forms with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic PdfAcroForm
PdfAcroForm.getAcroForm
(PdfDocument document, boolean createIfNotExist) Retrieves AcroForm from the document.static PdfAcroForm
PdfAcroForm.getAcroForm
(PdfDocument document, boolean createIfNotExist, OnDuplicateFormFieldNameStrategy onDuplicateFieldNameStrategy) Retrieves AcroForm from the document.void
PdfPageFormCopier.recreateAcroformToProcessCopiedFields
(PdfDocument documentTo) -
Uses of PdfDocument in com.itextpdf.forms.fields
Methods in com.itextpdf.forms.fields that return PdfDocumentModifier and TypeMethodDescriptionAbstractPdfFormField.getDocument()
Gets thePdfDocument
that owns that form field.FormFieldBuilder.getDocument()
Gets document to be used for form field creation.Methods in com.itextpdf.forms.fields with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic PdfButtonFormField
PdfFormCreator.createButtonFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a button form field as a parent of aPdfWidgetAnnotation
using provided factory.static PdfButtonFormField
PdfFormCreator.createButtonFormField
(PdfDocument document) Create a minimal, emptyPdfButtonFormField
using provided factory.PdfFormFactory.createButtonFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a button form field as a parent of aPdfWidgetAnnotation
.PdfFormFactory.createButtonFormField
(PdfDocument document) Create a minimal, emptyPdfButtonFormField
.static PdfChoiceFormField
PdfFormCreator.createChoiceFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a choice form field as a parent of aPdfWidgetAnnotation
using provided factory.static PdfChoiceFormField
PdfFormCreator.createChoiceFormField
(PdfDocument document) Create a minimal, emptyPdfChoiceFormField
using provided factory.PdfFormFactory.createChoiceFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a choice form field as a parent of aPdfWidgetAnnotation
.PdfFormFactory.createChoiceFormField
(PdfDocument document) Create a minimal, emptyPdfChoiceFormField
.static PdfFormAnnotation
PdfFormCreator.createFormAnnotation
(PdfWidgetAnnotation widget, PdfDocument document) Creates a form field annotation as a wrapper of aPdfWidgetAnnotation
using provided factory.PdfFormFactory.createFormAnnotation
(PdfWidgetAnnotation widget, PdfDocument document) Creates a form field annotation as a wrapper of aPdfWidgetAnnotation
.static PdfFormField
PdfFormCreator.createFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a form field as a parent of aPdfWidgetAnnotation
using provided factory.static PdfFormField
PdfFormCreator.createFormField
(PdfDocument document) Create a minimal, emptyPdfFormField
using provided factory.PdfFormFactory.createFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a form field as a parent of aPdfWidgetAnnotation
.PdfFormFactory.createFormField
(PdfDocument document) Create a minimal, emptyPdfFormField
.static PdfSignatureFormField
PdfFormCreator.createSignatureFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a signature form field as a parent of aPdfWidgetAnnotation
using provided factory.static PdfSignatureFormField
PdfFormCreator.createSignatureFormField
(PdfDocument document) Create a minimal, emptyPdfSignatureFormField
using provided factory.PdfFormFactory.createSignatureFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a signature form field as a parent of aPdfWidgetAnnotation
.PdfFormFactory.createSignatureFormField
(PdfDocument document) Create a minimal, emptyPdfSignatureFormField
.static PdfTextFormField
PdfFormCreator.createTextFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a text form field as a parent of aPdfWidgetAnnotation
using provided factory.static PdfTextFormField
PdfFormCreator.createTextFormField
(PdfDocument document) Create a minimal, emptyPdfTextFormField
using provided factory.PdfFormFactory.createTextFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a text form field as a parent of aPdfWidgetAnnotation
.PdfFormFactory.createTextFormField
(PdfDocument document) Create a minimal, emptyPdfTextFormField
.static PdfAcroForm
PdfFormCreator.getAcroForm
(PdfDocument document, boolean createIfNotExist) Retrieves AcroForm from the document using provided factory.PdfFormFactory.getAcroForm
(PdfDocument document, boolean createIfNotExist) Retrieves AcroForm from the document.static PdfFormAnnotation
PdfFormAnnotation.makeFormAnnotation
(PdfObject pdfObject, PdfDocument document) Creates aPdfFormAnnotation
object.static PdfFormField
PdfFormField.makeFormField
(PdfObject pdfObject, PdfDocument document) Creates a (subtype of)PdfFormField
object.static AbstractPdfFormField
PdfFormField.makeFormFieldOrAnnotation
(PdfObject pdfObject, PdfDocument document) Constructors in com.itextpdf.forms.fields with parameters of type PdfDocumentModifierConstructorDescriptionCheckBoxFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfButtonFormField
creation.ChoiceFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfChoiceFormField
creation.protected
FormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfFormField
creation.NonTerminalFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder for non-terminalPdfFormField
creation.protected
PdfButtonFormField
(PdfWidgetAnnotation widget, PdfDocument pdfDocument) protected
PdfButtonFormField
(PdfDocument pdfDocument) protected
PdfChoiceFormField
(PdfWidgetAnnotation widget, PdfDocument pdfDocument) protected
PdfChoiceFormField
(PdfDocument pdfDocument) protected
PdfFormAnnotation
(PdfWidgetAnnotation widget, PdfDocument pdfDocument) Creates a form field annotation as a wrapper of aPdfWidgetAnnotation
.protected
PdfFormField
(PdfWidgetAnnotation widget, PdfDocument pdfDocument) Creates a form field as a parent of aPdfWidgetAnnotation
.protected
PdfFormField
(PdfDocument pdfDocument) Creates a minimalPdfFormField
.protected
PdfSignatureFormField
(PdfWidgetAnnotation widget, PdfDocument pdfDocument) protected
PdfSignatureFormField
(PdfDocument pdfDocument) protected
PdfTextFormField
(PdfWidgetAnnotation widget, PdfDocument pdfDocument) protected
PdfTextFormField
(PdfDocument pdfDocument) PushButtonFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfButtonFormField
creation.RadioFormFieldBuilder
(PdfDocument document, String radioGroupFormFieldName) Creates builder for radio form field creation.SignatureFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfSignatureFormField
creation.protected
TerminalFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder for terminal form field creation.TextFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfTextFormField
creation. -
Uses of PdfDocument in com.itextpdf.forms.form.renderer
Methods in com.itextpdf.forms.form.renderer with parameters of type PdfDocumentModifier and TypeMethodDescriptionprotected void
AbstractFormFieldRenderer.writeAcroFormFieldLangAttribute
(PdfDocument pdfDoc) protected void
AbstractSelectFieldRenderer.writeAcroFormFieldLangAttribute
(PdfDocument pdfDoc) -
Uses of PdfDocument in com.itextpdf.forms.xfa
Methods in com.itextpdf.forms.xfa with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic void
XfaForm.setXfaForm
(XfaForm form, PdfDocument pdfDocument) Sets the XFA key from a byte array.void
XfaForm.write
(PdfDocument document) Write the XfaForm to the providedPdfDocument
.Constructors in com.itextpdf.forms.xfa with parameters of type PdfDocument -
Uses of PdfDocument in com.itextpdf.forms.xfdf
Methods in com.itextpdf.forms.xfdf with parameters of type PdfDocumentModifier and TypeMethodDescriptionXfdfObjectFactory.createXfdfObject
(PdfDocument document, String filename) Extracts data from pdf document acroform and annotations into XfdfObject.void
XfdfObject.mergeToPdf
(PdfDocument pdfDocument, String pdfDocumentName) Merges info from XfdfObject to pdf document. -
Uses of PdfDocument in com.itextpdf.kernel.actions.events
Constructors in com.itextpdf.kernel.actions.events with parameters of type PdfDocumentModifierConstructorDescriptionFlushPdfDocumentEvent
(PdfDocument document) Creates a new instance of the flushing event.LinkDocumentIdEvent
(PdfDocument document, AbstractIdentifiableElement identifiableElement) Creates a new instance of the event associating providedPdfDocument
with the appropriateAbstractIdentifiableElement
.LinkDocumentIdEvent
(PdfDocument document, SequenceId sequenceId) Creates a new instance of the event associating providedPdfDocument
with the appropriateSequenceId
. -
Uses of PdfDocument in com.itextpdf.kernel.colors.gradients
Methods in com.itextpdf.kernel.colors.gradients with parameters of type PdfDocumentModifier and TypeMethodDescriptionAbstractLinearGradientBuilder.buildColor
(Rectangle targetBoundingBox, AffineTransform contextTransform, PdfDocument document) Builds theColor
object representing the linear gradient with specified configuration that fills the target bounding box. -
Uses of PdfDocument in com.itextpdf.kernel.events
Methods in com.itextpdf.kernel.events that return PdfDocumentModifier and TypeMethodDescriptionPdfDocumentEvent.getDocument()
Returns the PdfDocument associated with this event.Constructors in com.itextpdf.kernel.events with parameters of type PdfDocumentModifierConstructorDescriptionPdfDocumentEvent
(String type, PdfDocument document) Creates a PdfDocumentEvent. -
Uses of PdfDocument in com.itextpdf.kernel.font
Methods in com.itextpdf.kernel.font that return PdfDocumentMethods in com.itextpdf.kernel.font with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding, PdfFontFactory.EmbeddingStrategy embeddingStrategy, PdfDocument cacheTo) Creates aPdfFont
instance by the path of the font program file and given encoding and place it inside thePdfDocument
.static PdfFont
PdfFontFactory.createFont
(String fontProgram, String encoding, PdfDocument cacheTo) Creates aPdfFont
instance by the path of the font program file and given encoding and place it inside thePdfDocument
.static PdfType3Font
PdfFontFactory.createType3Font
(PdfDocument document, boolean colorized) Creates a new instance ofPdfType3Font
static PdfType3Font
PdfFontFactory.createType3Font
(PdfDocument document, String fontName, String fontFamily, boolean colorized) Creates a new instance ofPdfType3Font
-
Uses of PdfDocument in com.itextpdf.kernel.pdf
Fields in com.itextpdf.kernel.pdf declared as PdfDocumentModifier and TypeFieldDescriptionprotected PdfDocument
PdfOutputStream.document
Document associated with PdfOutputStream.protected PdfDocument
PdfIndirectReference.pdfDocument
PdfDocument object belongs to.protected PdfDocument
PdfReader.pdfDocument
Methods in com.itextpdf.kernel.pdf that return PdfDocumentModifier and TypeMethodDescriptionPdfCatalog.getDocument()
GetPdfDocument
with indirect reference associated with the object.PdfIndirectReference.getDocument()
PdfPage.getDocument()
Gets thePdfDocument
that owns that page, ornull
if such document isn't exist.PdfDocument.setTagged()
Specifies that document shall contain tag structure.Methods in com.itextpdf.kernel.pdf with parameters of type PdfDocumentModifier and TypeMethodDescriptionPdfResources.addFont
(PdfDocument pdfDocument, PdfFont font) Adds font to resources and registers PdfFont in the document for further flushing.PdfPage.copyAsFormXObject
(PdfDocument toDocument) Copies page as FormXObject to the specified document.protected void
PdfArray.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfBoolean.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfDictionary.copyContent
(PdfObject from, PdfDocument document) Copies object content from object 'from'.protected void
PdfDictionary.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) Copies object content from object 'from'.protected void
PdfIndirectReference.copyContent
(PdfObject from, PdfDocument document) protected void
PdfIndirectReference.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfLiteral.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfName.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfNull.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfNumber.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfObject.copyContent
(PdfObject from, PdfDocument document) Copies object content from object 'from'.protected void
PdfObject.copyContent
(PdfObject from, PdfDocument document, ICopyFilter filter) Copies object content from object 'from'.protected void
PdfPrimitiveObject.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfStream.copyContent
(PdfObject from, PdfDocument document) protected void
PdfStream.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected void
PdfString.copyContent
(PdfObject from, PdfDocument document, ICopyFilter copyFilter) protected PdfObject
PdfWriter.copyObject
(PdfObject obj, PdfDocument documentTo, boolean allowDuplicating) Copies a PdfObject either stand alone or as part of the PdfDocument passed as documentTo.protected PdfObject
PdfWriter.copyObject
(PdfObject obj, PdfDocument documentTo, boolean allowDuplicating, ICopyFilter copyFilter) Copies a PdfObject either stand alone or as part of the PdfDocument passed as documentTo.PdfDocument.copyPagesTo
(int pageFrom, int pageTo, PdfDocument toDocument) Copies a range of pages from current document totoDocument
appending copied pages to the end.PdfDocument.copyPagesTo
(int pageFrom, int pageTo, PdfDocument toDocument, int insertBeforePage) Copies a range of pages from current document totoDocument
.PdfDocument.copyPagesTo
(int pageFrom, int pageTo, PdfDocument toDocument, int insertBeforePage, IPdfPageExtraCopier copier) Copies a range of pages from current document totoDocument
.PdfDocument.copyPagesTo
(int pageFrom, int pageTo, PdfDocument toDocument, IPdfPageExtraCopier copier) Copies a range of pages from current document totoDocument
appending copied pages to the end.PdfDocument.copyPagesTo
(List<Integer> pagesToCopy, PdfDocument toDocument) Copies a range of pages from current document totoDocument
appending copied pages to the end.PdfDocument.copyPagesTo
(List<Integer> pagesToCopy, PdfDocument toDocument, int insertBeforePage) Copies a range of pages from current document totoDocument
.PdfDocument.copyPagesTo
(List<Integer> pagesToCopy, PdfDocument toDocument, int insertBeforePage, IPdfPageExtraCopier copier) Copies a range of pages from current document totoDocument
.PdfDocument.copyPagesTo
(List<Integer> pagesToCopy, PdfDocument toDocument, IPdfPageExtraCopier copier) Copies a range of pages from current document totoDocument
appending copied pages to the end.PdfDictionary.copyTo
(PdfDocument document, List<PdfName> excludeKeys, boolean allowDuplicating) Copies dictionary to specified document.PdfDictionary.copyTo
(PdfDocument document, List<PdfName> excludeKeys, boolean allowDuplicating, ICopyFilter copyFilter) Copies dictionary to specified document.PdfObject.copyTo
(PdfDocument document) Copies object to a specified document.PdfObject.copyTo
(PdfDocument document, boolean allowDuplicating) Copies object to a specified document.PdfObject.copyTo
(PdfDocument document, boolean allowDuplicating, ICopyFilter copyFilter) Copies object to a specified document.PdfObject.copyTo
(PdfDocument document, ICopyFilter copyFilter) Copies object to a specified document.PdfPage.copyTo
(PdfDocument toDocument) Copies page to the specified document.PdfPage.copyTo
(PdfDocument toDocument, IPdfPageExtraCopier copier) Copies page to the specified document.PdfPage.copyTo
(PdfDocument toDocument, IPdfPageExtraCopier copier, boolean addPageToDocument, int pageInsertIndex) Copies page and adds it to the specified document to the end or by index if the corresponding parameter is true.protected PdfIndirectReference
PdfXrefTable.createNextIndirectReference
(PdfDocument document) Creates next available indirect reference.IPdfPageFactory.createPdfPage
(PdfDocument pdfDocument, PageSize pageSize) CreatePdfPage
with given page size and add it to thePdfDocument
.void
PdfDocument.flushCopiedObjects
(PdfDocument sourceDoc) Flush all copied objects and remove them from copied cache.PdfObject.makeIndirect
(PdfDocument document) Marks object to be saved as indirect.PdfObject.makeIndirect
(PdfDocument document, PdfIndirectReference reference) Marks object to be saved as indirect.PdfObjectWrapper.makeIndirect
(PdfDocument document) Marks object behind wrapper to be saved as indirect.PdfObjectWrapper.makeIndirect
(PdfDocument document, PdfIndirectReference reference) Marks object behind wrapper to be saved as indirect.PdfPrimitiveObject.makeIndirect
(PdfDocument document, PdfIndirectReference reference) void
IPdfPageFormCopier.recreateAcroformToProcessCopiedFields
(PdfDocument documentTo) Create Acroform from its PDF object to process form field objects added to the Acroform during copying.static boolean
VersionConforming.validatePdfVersionForDeprecatedFeatureLogError
(PdfDocument document, PdfVersion expectedVersion, String deprecatedFeatureLogMessage) static boolean
VersionConforming.validatePdfVersionForDeprecatedFeatureLogWarn
(PdfDocument document, PdfVersion expectedVersion, String deprecatedFeatureLogMessage) static boolean
VersionConforming.validatePdfVersionForDictEntry
(PdfDocument document, PdfVersion expectedVersion, PdfName entryKey, PdfName dictType) protected static void
PdfXrefTable.writeKeyInfo
(PdfDocument document) Convenience method to write the fingerprint preceding the trailer.protected void
PdfXrefTable.writeXrefTableAndTrailer
(PdfDocument document, PdfObject fileId, PdfObject crypto) Writes cross reference table and trailer to PDF.Constructors in com.itextpdf.kernel.pdf with parameters of type PdfDocumentModifierConstructorDescriptionDestinationResolverCopyFilter
(PdfDocument fromDocument, PdfDocument targetDocument) Initilazes a copy filter that will set all needed information aside to handle objects with a page destination after all pages are copied.protected
GenericNameTree
(PdfDocument pdfDoc) Creates a name tree structure in the current document.PageFlushingHelper
(PdfDocument pdfDoc) protected
PdfCatalog
(PdfDocument pdfDocument) CreatePdfCatalog
toPdfDocument
.protected
PdfIndirectReference
(PdfDocument doc, int objNr) protected
PdfIndirectReference
(PdfDocument doc, int objNr, int genNr) protected
PdfIndirectReference
(PdfDocument doc, int objNr, int genNr, long offset) protected
PdfPage
(PdfDocument pdfDocument) protected
PdfPage
(PdfDocument pdfDocument, PageSize pageSize) PdfStream
(PdfDocument doc, InputStream inputStream) Creates an efficient stream.PdfStream
(PdfDocument doc, InputStream inputStream, int compressionLevel) Creates an efficient stream. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.action
Methods in com.itextpdf.kernel.pdf.action with parameters of type PdfDocumentModifier and TypeMethodDescriptionPdfTarget.getAnnotation
(PdfDocument pdfDocument) Gets the annotation specified by /A and /P entry values.PdfTarget.setAnnotation
(PdfFileAttachmentAnnotation pdfAnnotation, PdfDocument pdfDocument) Sets the /P and /A values corresponding to provided annotation, which is already added to a page. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.annot
Constructors in com.itextpdf.kernel.pdf.annot with parameters of type PdfDocumentModifierConstructorDescriptionPdfSoundAnnotation
(PdfDocument document, Rectangle rect, InputStream soundStream, float sampleRate, PdfName encoding, int channels, int sampleSizeInBits) Creates a sound annotation. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.canvas
Fields in com.itextpdf.kernel.pdf.canvas declared as PdfDocumentModifier and TypeFieldDescriptionprotected PdfDocument
PdfCanvas.document
the document that the resulting content stream of this canvas will be written to.Methods in com.itextpdf.kernel.pdf.canvas that return PdfDocumentModifier and TypeMethodDescriptionPdfCanvas.getDocument()
Get the document this canvas belongs toConstructors in com.itextpdf.kernel.pdf.canvas with parameters of type PdfDocumentModifierConstructorDescriptionPdfCanvas
(PdfDocument doc, int pageNum) Convenience method for fast PdfCanvas creation by a certain page.PdfCanvas
(PdfStream contentStream, PdfResources resources, PdfDocument document) Creates PdfCanvas from content stream of page, form XObject, pattern etc.PdfCanvas
(PdfFormXObject xObj, PdfDocument document) Creates a PdfCanvas from a PdfFormXObject.PdfPatternCanvas
(PdfPattern.Tiling pattern, PdfDocument document) Creates PdfPatternCanvas for a document from a provided Tiling patternPdfPatternCanvas
(PdfStream contentStream, PdfResources resources, PdfDocument document) Creates PdfPatternCanvas from content stream of page, form XObject, pattern etc. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.canvas.parser
Constructors in com.itextpdf.kernel.pdf.canvas.parser with parameters of type PdfDocument -
Uses of PdfDocument in com.itextpdf.kernel.pdf.canvas.wmf
Methods in com.itextpdf.kernel.pdf.canvas.wmf with parameters of type PdfDocumentModifier and TypeMethodDescriptionWmfImageHelper.createFormXObject
(PdfDocument document) Create a PdfXObject based on the WMF image. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.filespec
Methods in com.itextpdf.kernel.pdf.filespec with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfEncryptedPayloadFileSpecFactory.create
(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, byte[] fileStore, String fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, byte[] fileStore, String fileDisplay, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, InputStream is, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, InputStream is, String description, String fileDisplay, PdfName mimeType, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, String filePath, String fileDisplay, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createEmbeddedFileSpec
(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName mimeType, PdfName afRelationshipValue) Create an embedded file specification.static PdfFileSpec
PdfFileSpec.createExternalFileSpec
(PdfDocument doc, String filePath) Create an external file specification.static PdfFileSpec
PdfFileSpec.createExternalFileSpec
(PdfDocument doc, String filePath, PdfName afRelationshipValue) Create an external file specification. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.layer
Methods in com.itextpdf.kernel.pdf.layer that return PdfDocumentModifier and TypeMethodDescriptionprotected PdfDocument
PdfLayer.getDocument()
Gets thePdfDocument
that owns that layer.protected PdfDocument
PdfLayerMembership.getDocument()
Gets thePdfDocument
that owns that layer membership.protected PdfDocument
PdfOCProperties.getDocument()
Gets thePdfDocument
that owns that OCProperties.Methods in com.itextpdf.kernel.pdf.layer with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic void
PdfLayer.addOCGRadioGroup
(PdfDocument document, List<PdfLayer> group) Use this method to set a collection of optional content groups whose states are intended to follow a "radio button" paradigm.static PdfLayer
PdfLayer.createTitle
(String title, PdfDocument document) Creates a title layer.protected static PdfLayer
PdfLayer.createTitleSilent
(String title, PdfDocument document) Creates a title layer without registering it in PdfOCProperties.Constructors in com.itextpdf.kernel.pdf.layer with parameters of type PdfDocumentModifierConstructorDescriptionPdfLayer
(String name, PdfDocument document) Creates a new layer by its name and document.Creates a new, empty membership layer.PdfOCProperties
(PdfDocument document) Creates a new PdfOCProperties instance. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.tagging
Methods in com.itextpdf.kernel.pdf.tagging that return PdfDocumentModifier and TypeMethodDescriptionprotected PdfDocument
PdfStructElem.getDocument()
PdfStructTreeRoot.getDocument()
Methods in com.itextpdf.kernel.pdf.tagging with parameters of type PdfDocumentModifier and TypeMethodDescriptionvoid
PdfStructTreeRoot.copyTo
(PdfDocument destDocument, int insertBeforePage, Map<PdfPage, PdfPage> page2page) Copies structure to adestDocument
and insert it in a specified position in the document.void
PdfStructTreeRoot.copyTo
(PdfDocument destDocument, Map<PdfPage, PdfPage> page2page) Copies structure to adestDocument
.Constructors in com.itextpdf.kernel.pdf.tagging with parameters of type PdfDocumentModifierConstructorDescriptionPdfStructElem
(PdfDocument document, PdfName role) PdfStructElem
(PdfDocument document, PdfName role, PdfAnnotation annot) PdfStructElem
(PdfDocument document, PdfName role, PdfPage page) PdfStructTreeRoot
(PdfDictionary structTreeRootDict, PdfDocument document) Creates wrapper instance for already existing logical structure tree root in the document.PdfStructTreeRoot
(PdfDocument document) Creates a new structure tree root instance, this initializes empty logical structure in the document. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.tagutils
Methods in com.itextpdf.kernel.pdf.tagutils that return PdfDocumentConstructors in com.itextpdf.kernel.pdf.tagutils with parameters of type PdfDocumentModifierConstructorDescriptionTagStructureContext
(PdfDocument document) Do not use this constructor, instead usegetTagStructureContext()
method.TagStructureContext
(PdfDocument document, PdfVersion tagStructureTargetVersion) Do not use this constructor, instead usegetTagStructureContext()
method.TagTreePointer
(PdfDocument document) CreatesTagTreePointer
instance. -
Uses of PdfDocument in com.itextpdf.kernel.pdf.xobject
Methods in com.itextpdf.kernel.pdf.xobject with parameters of type PdfDocumentModifier and TypeMethodDescriptionPdfImageXObject.copyTo
(PdfDocument document) Copy Image XObject to the specified document.Constructors in com.itextpdf.kernel.pdf.xobject with parameters of type PdfDocumentModifierConstructorDescriptionPdfFormXObject
(WmfImageData image, PdfDocument pdfDocument) Creates a form XObject fromWmfImageData
. -
Uses of PdfDocument in com.itextpdf.kernel.utils
Fields in com.itextpdf.kernel.utils declared as PdfDocumentMethods in com.itextpdf.kernel.utils that return PdfDocumentModifier and TypeMethodDescriptionPdfSplitter.extractPageRange
(PageRange pageRange) Extracts the specified page ranges from a document.PdfSplitter.getPdfDocument()
Methods in com.itextpdf.kernel.utils that return types with arguments of type PdfDocumentModifier and TypeMethodDescriptionPdfSplitter.extractPageRanges
(List<PageRange> pageRanges) Extracts the specified page ranges from a document.PdfSplitter.splitByOutlines
(List<String> outlineTitles) Split a document by outline title (bookmark name), find outline by name and places the entire hierarchy in a separate document ( outlines and pages ) .PdfSplitter.splitByPageCount
(int pageCount) Splits a document into smaller documents with no more than @pageCount pages each.PdfSplitter.splitByPageNumbers
(List<Integer> pageNumbers) Splits the document by page numbers.PdfSplitter.splitBySize
(long size) Splits the document basing on the given size specified in bytes.Methods in com.itextpdf.kernel.utils with parameters of type PdfDocumentModifier and TypeMethodDescriptionCompareTool.compareByCatalog
(PdfDocument outDocument, PdfDocument cmpDocument) Compares two PDF documents by content starting from Catalog dictionary and then recursively comparing corresponding objects which are referenced from it.void
PdfSplitter.IDocumentReadyListener.documentReady
(PdfDocument pdfDocument, PageRange pageRange) PdfAnnotationFlattener.flatten
(PdfDocument document) Flattens the annotations on the page according to the defined implementation ofIAnnotationFlattener
.PdfMerger.merge
(PdfDocument from, int fromPage, int toPage) This method merges pages from the source document to the current one.PdfMerger.merge
(PdfDocument from, List<Integer> pages) This method merges pages from the source document to the current one.PdfMerger.merge
(PdfDocument from, List<Integer> pages, IPdfPageExtraCopier copier) This method merges pages from the source document to the current one.static void
PdfScriptMerger.mergeAdditionalActionsScripts
(PdfDocument source, PdfDocument destination) Copies AA catalog entry ECMA scripts, it only copies first action in chainstatic void
PdfScriptMerger.mergeNamesScripts
(PdfDocument source, PdfDocument destination) Copies ECMA scripts from Names catalog entrystatic void
PdfScriptMerger.mergeOpenActionsScripts
(PdfDocument source, PdfDocument destination) Copies open actions catalog entry ECMA scripts, it only copies first action in chainstatic void
PdfScriptMerger.mergeScripts
(PdfDocument source, PdfDocument destination) Merges ECMA scripts from source to destinations from all possible places for them, it only copies first action in chain for AA and OpenAction entriesConstructors in com.itextpdf.kernel.utils with parameters of type PdfDocumentModifierConstructorDescriptionPdfMerger
(PdfDocument pdfDocument) This class is used to merge a number of existing documents into one.PdfMerger
(PdfDocument pdfDocument, boolean mergeTags, boolean mergeOutlines) Deprecated.PdfMerger
(PdfDocument pdfDocument, PdfMergerProperties properties) This class is used to merge a number of existing documents into one.PdfSplitter
(PdfDocument pdfDocument) Creates a new instance of PdfSplitter class.TaggedPdfReaderTool
(PdfDocument document) Constructs aTaggedPdfReaderTool
via a givenPdfDocument
. -
Uses of PdfDocument in com.itextpdf.kernel.utils.objectpathitems
Methods in com.itextpdf.kernel.utils.objectpathitems that return PdfDocumentModifier and TypeMethodDescriptionTrailerPath.getCmpDocument()
Method returns current cmpPdfDocument
object.TrailerPath.getOutDocument()
Method returns current outPdfDocument
object.Constructors in com.itextpdf.kernel.utils.objectpathitems with parameters of type PdfDocumentModifierConstructorDescriptionTrailerPath
(PdfDocument cmpDoc, PdfDocument outDoc) TrailerPath
(PdfDocument cmpDoc, PdfDocument outDoc, Stack<LocalPathItem> path) -
Uses of PdfDocument in com.itextpdf.layout
Fields in com.itextpdf.layout declared as PdfDocumentMethods in com.itextpdf.layout that return PdfDocumentModifier and TypeMethodDescriptionCanvas.getPdfDocument()
Gets thePdfDocument
for this canvas.Document.getPdfDocument()
Gets PDF document.Constructors in com.itextpdf.layout with parameters of type PdfDocumentModifierConstructorDescriptionCanvas
(PdfFormXObject formXObject, PdfDocument pdfDocument) Creates a new Canvas to manipulate a specificPdfFormXObject
.Document
(PdfDocument pdfDoc) Creates a document from aPdfDocument
.Document
(PdfDocument pdfDoc, PageSize pageSize) Creates a document from aPdfDocument
with a manually setPageSize
.Document
(PdfDocument pdfDoc, PageSize pageSize, boolean immediateFlush) Creates a document from aPdfDocument
with a manually setPageSize
. -
Uses of PdfDocument in com.itextpdf.layout.renderer
Methods in com.itextpdf.layout.renderer that return PdfDocumentMethods in com.itextpdf.layout.renderer with parameters of type PdfDocumentModifier and TypeMethodDescriptionprotected void
AbstractRenderer.applyAction
(PdfDocument document) protected void
AbstractRenderer.applyDestination
(PdfDocument document) protected void
AbstractRenderer.applyLinkAnnotation
(PdfDocument document) static PdfFormXObject
AbstractRenderer.createXObject
(AbstractLinearGradientBuilder linearGradientBuilder, Rectangle xObjectArea, PdfDocument document) Create aPdfFormXObject
with the given area and containing a linear gradient inside.Constructors in com.itextpdf.layout.renderer with parameters of type PdfDocumentModifierConstructorDescriptionDrawContext
(PdfDocument document, PdfCanvas canvas) DrawContext
(PdfDocument document, PdfCanvas canvas, boolean enableTagging) -
Uses of PdfDocument in com.itextpdf.layout.tagging
Methods in com.itextpdf.layout.tagging that return PdfDocumentConstructors in com.itextpdf.layout.tagging with parameters of type PdfDocument -
Uses of PdfDocument in com.itextpdf.pdfa
Subclasses of PdfDocument in com.itextpdf.pdfaModifier and TypeClassDescriptionclass
This class extendsPdfADocument
and serves asPdfADocument
for PDF/A compliant documents and asPdfDocument
for non PDF/A documents.class
This class extendsPdfDocument
and is in charge of creating files that comply with the PDF/A standard. -
Uses of PdfDocument in com.itextpdf.signatures
Fields in com.itextpdf.signatures declared as PdfDocumentModifier and TypeFieldDescriptionprotected PdfDocument
LtvVerifier.document
A document object for the revision that is being verified.protected PdfDocument
PdfSigner.document
The PdfDocument.Methods in com.itextpdf.signatures that return PdfDocumentModifier and TypeMethodDescriptionPdfSigner.getDocument()
Gets the PdfDocument associated with this instance.protected PdfDocument
PdfSigner.initDocument
(PdfReader reader, PdfWriter writer, StampingProperties properties) Methods in com.itextpdf.signatures with parameters of type PdfDocumentModifier and TypeMethodDescriptionprotected void
LtvVerifier.initLtvVerifier
(PdfDocument document) protected void
PdfSigner.setDocument
(PdfDocument document) Sets the PdfDocument.static void
PdfSigner.signDeferred
(PdfDocument document, String fieldName, OutputStream outs, IExternalSignatureContainer externalSignatureContainer) Signs a PDF where space was already reserved.Constructors in com.itextpdf.signatures with parameters of type PdfDocumentModifierConstructorDescriptionLtvVerification
(PdfDocument document) The verification constructor.LtvVerification
(PdfDocument document, String securityProviderCode) The verification constructor.LtvVerifier
(PdfDocument document) Creates a VerificationData object for a PdfReaderLtvVerifier
(PdfDocument document, String securityProviderCode) protected
PdfSignatureAppearance
(PdfDocument document, Rectangle pageRect, int pageNumber) Creates a PdfSignatureAppearance.SignatureUtil
(PdfDocument document) Creates a SignatureUtil instance. -
Uses of PdfDocument in com.itextpdf.svg.converter
Methods in com.itextpdf.svg.converter with parameters of type PdfDocumentModifier and TypeMethodDescriptionstatic Image
SvgConverter.convertToImage
(InputStream stream, PdfDocument document) Converts a String containing valid SVG content to anXObject
that can then be used on the passedPdfDocument
.static Image
SvgConverter.convertToImage
(InputStream stream, PdfDocument document, ISvgConverterProperties props) Converts a String containing valid SVG content to animage
that can then be used on the passedPdfDocument
.static PdfFormXObject
SvgConverter.convertToXObject
(ISvgNodeRenderer topSvgRenderer, PdfDocument document) This method draws a NodeRenderer tree to a canvas that is tied to the passed document.static PdfFormXObject
SvgConverter.convertToXObject
(InputStream stream, PdfDocument document) Converts a String containing valid SVG content to anXObject
that can then be used on the passedPdfDocument
.static PdfFormXObject
SvgConverter.convertToXObject
(InputStream stream, PdfDocument document, ISvgConverterProperties props) Converts a String containing valid SVG content to anXObject
that can then be used on the passedPdfDocument
.static PdfFormXObject
SvgConverter.convertToXObject
(String content, PdfDocument document) Converts a String containing valid SVG content to anXObject
that can then be used on the passedPdfDocument
.static PdfFormXObject
SvgConverter.convertToXObject
(String content, PdfDocument document, ISvgConverterProperties props) Converts a String containing valid SVG content to anXObject
that can then be used on the passedPdfDocument
.static void
SvgConverter.drawOnDocument
(InputStream stream, PdfDocument document, int pageNo) Draws a Stream containing valid SVG to a document, on a given page number ate the origni of the page.static void
SvgConverter.drawOnDocument
(InputStream stream, PdfDocument document, int pageNo, float x, float y) Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate.static void
SvgConverter.drawOnDocument
(InputStream stream, PdfDocument document, int pageNo, float x, float y, ISvgConverterProperties props) Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate.static void
SvgConverter.drawOnDocument
(InputStream stream, PdfDocument document, int pageNo, ISvgConverterProperties props) Draws a Stream containing valid SVG to a document, on a given page number on the provided x and y coordinate.static void
SvgConverter.drawOnDocument
(String content, PdfDocument document, int pageNo) Draws a String containing valid SVG to a document, on a given page number at the origin of the page.static void
SvgConverter.drawOnDocument
(String content, PdfDocument document, int pageNo, float x, float y) Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate.static void
SvgConverter.drawOnDocument
(String content, PdfDocument document, int pageNo, float x, float y, ISvgConverterProperties props) Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate.static void
SvgConverter.drawOnDocument
(String content, PdfDocument document, int pageNo, ISvgConverterProperties props) Draws a String containing valid SVG to a document, on a given page number on the provided x and y coordinate. -
Uses of PdfDocument in com.itextpdf.svg.element
Methods in com.itextpdf.svg.element with parameters of type PdfDocumentModifier and TypeMethodDescriptionvoid
SvgImage.generate
(PdfDocument document) Draws SVG image to a canvas-like object maintained in theSvgDrawContext
. -
Uses of PdfDocument in com.itextpdf.svg.xobject
Methods in com.itextpdf.svg.xobject with parameters of type PdfDocumentModifier and TypeMethodDescriptionvoid
SvgImageXObject.generate
(PdfDocument document) Processes xObject before first image generation to avoid drawing it twice or more.
PdfMerger(PdfDocument, PdfMergerProperties)
constructor