Class XfdfReader
java.lang.Object
com.itextpdf.forms.xfdf.XfdfReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<AnnotObject, PdfTextAnnotation> private static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument) private voidaddBorderEffectAttributes(PdfAnnotation annotation, AnnotObject annotObject) private voidaddBorderStyleAttributes(PdfAnnotation annotation, AnnotObject annotObject) private voidaddCommonAnnotationAttributes(PdfAnnotation annotation, AnnotObject annotObject) private voidaddMarkupAnnotationAttributes(PdfMarkupAnnotation annotation, AnnotObject annotObject) private voidmergeAnnotations(AnnotsObject annotsObject, PdfDocument pdfDocument) Merges existing XfdfObject into pdf document associated with it.private voidmergeFields(FieldsObject fieldsObject, PdfAcroForm form) Merges existing FieldsObject and children FieldObject entities into the form of the pdf document associated with it.(package private) voidmergeXfdfIntoPdf(XfdfObject xfdfObject, PdfDocument pdfDocument, String pdfDocumentName) Merges existing XfdfObject into pdf document associated with it.private voidsetInReplyTo(PdfDocument pdfDocument)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
annotationsWithInReplyTo
-
-
Constructor Details
-
XfdfReader
XfdfReader()
-
-
Method Details
-
mergeXfdfIntoPdf
Merges existing XfdfObject into pdf document associated with it.- Parameters:
xfdfObject- The object to be merged.pdfDocument- The associated pdf document.pdfDocumentName- The name of the associated pdf document.
-
mergeFields
Merges existing FieldsObject and children FieldObject entities into the form of the pdf document associated with it.- Parameters:
fieldsObject- object containing acroform fields data to be merged.form- acroform to be filled with xfdf data.
-
mergeAnnotations
Merges existing XfdfObject into pdf document associated with it.- Parameters:
annotsObject- The AnnotsObject with children AnnotObject entities to be mapped into PdfAnnotations.pdfDocument- The associated pdf document.
-
setInReplyTo
-
addCommonAnnotationAttributes
-
addMarkupAnnotationAttributes
-
addBorderStyleAttributes
-
addBorderEffectAttributes
-
addAnnotationToPdf
-