Package com.pd4ml.pdf.xfdf.internal
-
Class Summary Class Description AnnotationMapper Maps one PDF annotation dictionary to and from itsXfdfAnnotationform (ISO 19444-1 §6.4), covering every markup annotation subtype XFDF has an element for: Text, Link, FreeText, Line, Square, Circle, Polygon, PolyLine, Highlight, Underline, Squiggly, StrikeOut, Stamp, Caret, Ink, Popup, FileAttachment, Sound and Redact.ColorUtil Converts between a PDF colour array (/C//IC: 0, 1, 3 or 4 numeric components -- ISO 32000-1 Table 164/170) and the"#RRGGBB"hex string XFDF'scolor/interior-colorattributes use.FieldMapper Maps the/Root/AcroForm/Fieldstree to and from XFDF's flat<fields>list (ISO 19444-1 §6.3).FieldMapper.ApplyResult FieldMapper.applyFields(com.pd4ml.pdf.cos.COSDocument, java.util.List<com.pd4ml.pdf.xfdf.XfdfField>, com.pd4ml.pdf.xfdf.internal.SelectionFilter)'s outcome: how many fields were actually updated, and which requested names had no match.FlagsUtil Converts between a PDF annotation's/Fflags integer (ISO 32000-1 Table 165) and XFDF'sflagsattribute, a comma-separated list of the flag names that are set (e.g.SelectionFilter The optional "which annotations/fields" narrowing bothXfdfExporterandXfdfImporteraccept: a type filter and an ID filter, either or both of which may be unset (meaning "no restriction" for that one).StructureTreeUpdater Wires a brand-new PDF annotation -- oneXfdfImporterjust added from an<annots>entry, not one it merely updated in place -- into an already-tagged target document's accessibility structure tree (/StructTreeRoot), so the imported annotation doesn't silently fall outside it.