Package com.itextpdf.forms.xfdf
Class XfdfReader
- java.lang.Object
-
- com.itextpdf.forms.xfdf.XfdfReader
-
class XfdfReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<AnnotObject,PdfTextAnnotation>
annotationsWithInReplyTo
private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description XfdfReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument)
private void
addBorderEffectAttributes(PdfAnnotation annotation, AnnotObject annotObject)
private void
addBorderStyleAttributes(PdfAnnotation annotation, AnnotObject annotObject)
private void
addCommonAnnotationAttributes(PdfAnnotation annotation, AnnotObject annotObject)
private void
addMarkupAnnotationAttributes(PdfMarkupAnnotation annotation, AnnotObject annotObject)
private void
mergeAnnotations(AnnotsObject annotsObject, PdfDocument pdfDocument)
Merges existing XfdfObject into pdf document associated with it.private void
mergeFields(FieldsObject fieldsObject, PdfAcroForm form)
Merges existing FieldsObject and children FieldObject entities into the form of the pdf document associated with it.(package private) void
mergeXfdfIntoPdf(XfdfObject xfdfObject, PdfDocument pdfDocument, java.lang.String pdfDocumentName)
Merges existing XfdfObject into pdf document associated with it.private void
setInReplyTo(PdfDocument pdfDocument)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
annotationsWithInReplyTo
private final java.util.Map<AnnotObject,PdfTextAnnotation> annotationsWithInReplyTo
-
-
Method Detail
-
mergeXfdfIntoPdf
void mergeXfdfIntoPdf(XfdfObject xfdfObject, PdfDocument pdfDocument, java.lang.String pdfDocumentName)
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
private void mergeFields(FieldsObject fieldsObject, PdfAcroForm form)
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
private void mergeAnnotations(AnnotsObject annotsObject, PdfDocument pdfDocument)
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
private void setInReplyTo(PdfDocument pdfDocument)
-
addCommonAnnotationAttributes
private void addCommonAnnotationAttributes(PdfAnnotation annotation, AnnotObject annotObject)
-
addMarkupAnnotationAttributes
private void addMarkupAnnotationAttributes(PdfMarkupAnnotation annotation, AnnotObject annotObject)
-
addBorderStyleAttributes
private void addBorderStyleAttributes(PdfAnnotation annotation, AnnotObject annotObject)
-
addBorderEffectAttributes
private void addBorderEffectAttributes(PdfAnnotation annotation, AnnotObject annotObject)
-
addAnnotationToPdf
private void addAnnotationToPdf(AnnotObject annotObject, PdfDocument pdfDocument)
-
-