Class XMPChecker
java.lang.Object
org.verapdf.gf.model.impl.pd.util.XMPChecker
This class matches document information dictionary and xmp metadata by
comparing eight predefined fields:
- Title (-> Title)
- Author (-> Creators)
- Producer (-> Producer)
- Creator (-> CreatorTool)
- Keywords (-> Keywords)
- Subject (-> Description)
- Creation Date (-> Create Date)
- Mod Date (-> Modify Date)
- Author:
- Maksim Bezrukov
-
Method Summary
Modifier and TypeMethodDescriptionstatic BooleandoesInfoMatchXMP(COSDocument document) Matches properties of document information dictionary and xmp metadata.static InputStreamgetMetadataStream(COSDocument document) static StringgetStringWithoutTrailingZero(String string)
-
Method Details
-
doesInfoMatchXMP
Matches properties of document information dictionary and xmp metadata.- Parameters:
document- which will be tested- Returns:
- true if fields of xmp matches with fields of info dictionary
-
getMetadataStream
-
getStringWithoutTrailingZero
-