Top Description Constructors Methods
org.apache.pdfbox.preflight.font.util

public Class FontMetaDataValidation

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Iterator, .List, org.apache.pdfbox.pdmodel.font.PDFontDescriptor, org.apache.pdfbox.preflight.PreflightConstants, .ValidationResult.ValidationError, org.apache.pdfbox.preflight.exception.ValidationException, org.apache.pdfbox.preflight.font.descriptor.FontDescriptorHelper, org.apache.xmpbox.XMPMetadata, org.apache.xmpbox.schema.DublinCoreSchema, .XMPRightsManagementSchema, org.apache.xmpbox.type.AbstractField, .ArrayProperty, .BadFieldValueException, .BooleanType, .TextType

Class used to validate the MetaData entry of the Font File Stream dictionary.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
analyseFontName(XMPMetadata
XMPMetaData of the Font File Stream
metadata
,
PDFontDescriptor
The FontDescriptor dictionary
fontDesc
,
List<ValidationResult.ValidationError>
the list of validation error to update if the validation fails
ve
)

Value of the dc:title must be the same as the FontName in the font descriptor.

public boolean

Returns:

true if the analysis found no problems, false if it did.
analyseRights
(XMPMetadata
XMPMetaData of the Font File Stream
metadata
,
PDFontDescriptor
The FontDescriptor dictionary
fontDesc
,
List<ValidationResult.ValidationError>
the list of validation error to update if the validation fails
ve
)

If XMP MetaData is present, they must have the following information :

  • dc:rights
  • Marked (with the value true)
  • Owner
  • UsageTerms
public List<ValidationResult.ValidationError>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FontMetaDataValidationback to summary
public FontMetaDataValidation()

Method Detail

analyseFontNameback to summary
public boolean analyseFontName(XMPMetadata metadata, PDFontDescriptor fontDesc, List<ValidationResult.ValidationError> ve)

Value of the dc:title must be the same as the FontName in the font descriptor.

Parameters
metadata:XMPMetadata

XMPMetaData of the Font File Stream

fontDesc:PDFontDescriptor

The FontDescriptor dictionary

ve:List<ValidationResult.ValidationError>

the list of validation error to update if the validation fails

analyseRightsback to summary
public boolean analyseRights(XMPMetadata metadata, PDFontDescriptor fontDesc, List<ValidationResult.ValidationError> ve)

If XMP MetaData is present, they must have the following information :

  • dc:rights
  • Marked (with the value true)
  • Owner
  • UsageTerms
Parameters
metadata:XMPMetadata

XMPMetaData of the Font File Stream

fontDesc:PDFontDescriptor

The FontDescriptor dictionary

ve:List<ValidationResult.ValidationError>

the list of validation error to update if the validation fails

Returns:boolean

true if the analysis found no problems, false if it did.

validatePDFAIdentiferback to summary
public List<ValidationResult.ValidationError> validatePDFAIdentifer(XMPMetadata metadata, PDFontDescriptor fontDesc) throws ValidationException