Class AcroForm
java.lang.Object
se.swedenconnect.sigval.pdf.pdfstruct.AcroForm
Utility class for an AcroForm used to compare and extract values from the AcroForm
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionAcroForm
(org.apache.pdfbox.cos.COSBase objectValue, org.apache.pdfbox.cos.COSDocument cosDocument) Constructor -
Method Summary
Modifier and TypeMethodDescriptionlong
getObjectRef
(String... path) Get the object identifier value referenced by an inner dictionary inside the AcroFormboolean
Math the content with this Acroform with another AcroForm
-
Constructor Details
-
AcroForm
public AcroForm(org.apache.pdfbox.cos.COSBase objectValue, org.apache.pdfbox.cos.COSDocument cosDocument) Constructor- Parameters:
objectValue
- the object holding the AcroForm data or reference to AcroForm datacosDocument
- theCOSDocument
holding information about the document containing the AcroForm
-
-
Method Details
-
matches
Math the content with this Acroform with another AcroForm- Parameters:
matchForm
- the AcroForm to match agains- Returns:
- true on match
-
getObjectRef
Get the object identifier value referenced by an inner dictionary inside the AcroFormExample: if the path "DS" and "Font" is provided, this function looks for a dictionary under key "DS" containing an object under the key "Font"
- Parameters:
path
- the COSName identifying sub dictionaries and finally the key of the target object inside the AcroFrom- Returns:
- the object identifier value of the target
-