public class PdfA2Checker extends PdfA1Checker
PdfA1Checker.
The specification implemented by this class is ISO 19005-2
| Modifier and Type | Field and Description |
|---|---|
protected static Set<PdfName> |
allowedBlendModes |
protected static Set<PdfName> |
allowedFilters |
protected static Set<PdfName> |
allowedInlineImageFilters |
protected static Set<PdfName> |
apLessAnnotations |
protected static Set<PdfName> |
forbiddenActions |
protected static Set<PdfName> |
forbiddenAnnotations |
protected Set<PdfObject> |
transparencyObjects |
allowedNamedActions, allowedRenderingIntents, contentAnnotationscheckedObjects, checkedObjectsColorspace, cmykUsedObjects, conformance, grayUsedObjects, gsStackDepth, ICC_COLOR_SPACE_CMYK, ICC_COLOR_SPACE_GRAY, ICC_COLOR_SPACE_RGB, ICC_DEVICE_CLASS_MONITOR_PROFILE, ICC_DEVICE_CLASS_OUTPUT_PROFILE, maxGsStackDepth, pdfAOutputIntentColorSpace, pdfAOutputIntentDestProfile, rgbUsedObjects| Constructor and Description |
|---|
PdfA2Checker(PdfAConformance aConformance)
Creates a PdfA2Checker with the required conformance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAnnotation(PdfDictionary annotDic)
Verify the conformity of the annotation dictionary.
|
protected void |
checkAnnotationAgainstActions(PdfDictionary annotDic)
Checked annotation against actions, exception will be thrown if either
A
or AA actions aren't allowed for specific type of annotation. |
protected void |
checkAppearanceStream(PdfStream appearanceStream)
Check single annotation appearance stream.
|
protected void |
checkBlendMode(PdfName blendMode)
Check if blendMode is compatible with pdf/a standard being used.
|
protected void |
checkCatalogAAConformance(PdfDictionary dict)
Checks if the catalog is compliant with the PDF/A-2 standard.
|
protected void |
checkCatalogValidEntries(PdfDictionary catalogDict)
Checks if entries in catalog dictionary are valid.
|
void |
checkColor(CanvasGraphicsState gState,
Color color,
PdfDictionary currentColorSpaces,
Boolean fill,
PdfStream contentStream)
This method checks compliance with the color restrictions imposed by the
available color spaces in the document.
|
void |
checkColorSpace(PdfColorSpace colorSpace,
PdfObject pdfObject,
PdfDictionary currentColorSpaces,
boolean checkAlternate,
Boolean fill)
This method performs a range of checks on the given color space, depending
on the type and properties of that color space.
|
protected void |
checkContentConfigurationDictAgainstAsKey(PdfDictionary config)
Check optional content configuration dictionary against AS key.
|
void |
checkExtGState(CanvasGraphicsState extGState,
PdfStream contentStream)
Performs a number of checks on the graphics state, among others ISO
19005-1 section 6.2.8 and 6.4 and ISO 19005-2 section 6.2.5 and 6.2.10.
|
protected void |
checkFileSpec(PdfDictionary fileSpec)
Verify the conformity of the file specification dictionary.
|
void |
checkFontGlyphs(PdfFont font,
PdfStream contentStream)
Performs a check of the each font glyph as a Form XObject.
|
protected void |
checkForm(PdfDictionary form)
Verify the conformity of the form dictionary.
|
protected void |
checkFormXObject(PdfStream form)
For pdf/a-2+ checkers this method is overridden to use
checkFormXObject(PdfStream form, PdfStream contentStream) method. |
protected void |
checkFormXObject(PdfStream form,
PdfStream contentStream)
Verify the conformity of the Form XObject with appropriate
specification.
|
protected void |
checkImage(PdfStream image,
PdfDictionary currentColorSpaces)
Verify the conformity of the given image.
|
void |
checkInlineImage(PdfStream inlineImage,
PdfDictionary currentColorSpaces)
This method checks compliance with the inline image restrictions in the
PDF/A specs, specifically filter parameters.
|
protected void |
checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
Verify the conformity of the non-symbolic TrueType font.
|
protected void |
checkNumberOfDeviceNComponents(PdfSpecialCs.DeviceN deviceN)
Checks the number of components in DeviceN color space.
|
protected void |
checkOutputIntents(PdfDictionary catalog)
Verify the conformity of the output intents array in the catalog dictionary.
|
protected void |
checkPageAAConformance(PdfDictionary dict)
Checks if the page is compliant with the PDF/A-2 standard.
|
protected void |
checkPageColorsUsages(PdfDictionary pageDict,
PdfDictionary pageResources)
Verify the conformity of used color spaces on the page.
|
protected void |
checkPageObject(PdfDictionary pageDict,
PdfDictionary pageResources)
Verify the conformity of the page dictionary.
|
protected void |
checkPageSize(PdfDictionary page)
Checks the allowable size of the page.
|
protected void |
checkPageTransparency(PdfDictionary pageDict,
PdfDictionary pageResources)
Verify the conformity of the page transparency.
|
protected void |
checkPdfArray(PdfArray array)
Verify the conformity of the PDF array.
|
protected void |
checkPdfDictionary(PdfDictionary dictionary)
Verify the conformity of the PDF dictionary.
|
protected void |
checkPdfStream(PdfStream stream)
Verify the conformity of the PDF stream.
|
void |
checkSignature(PdfDictionary signatureDict)
This method checks compliance of the signature dictionary
|
protected void |
checkTransparencyGroup(PdfStream form,
PdfStream contentStream)
Verify the conformity of the transparency group XObject with appropriate
specification.
|
protected Set<PdfName> |
getAllowedNamedActions()
Retrieve allowed actions in conforming document.
|
protected Set<PdfName> |
getAppearanceLessAnnotations()
Gets annotation types which are allowed not to have appearance stream.
|
protected Set<PdfName> |
getForbiddenActions()
Retrieve forbidden actions in conforming document.
|
protected Set<PdfName> |
getForbiddenAnnotations()
Gets forbidden annotation types.
|
protected double |
getMaxRealValue()
Retrieve maximum allowed real value.
|
protected int |
getMaxStringLength()
Returns maximum allowed bytes length of the string in a PDF document.
|
protected String |
getTransparencyErrorMessage()
Retrieve transparency error message valid for the pdf/a standard being used.
|
checkAction, checkCanvasStack, checkCatalog, checkContentStream, checkCrypto, checkFont, checkLogicalStructure, checkMetaData, checkPdfName, checkPdfNumber, checkPdfString, checkRenderingIntent, checkSignatureType, checkSymbolicTrueTypeFont, checkText, checkTrailer, checkXrefTable, getFormFields, getMaxIntegerValue, getMaxNameLength, getMaxNumberOfIndirectObjects, getMinIntegerValuecheckContentStreamObject, checkDocument, checkFlag, checkPdfObject, checkResources, checkResourcesOfAppearanceStreams, checkSinglePage, checkStructure, checkTagStructureElement, getAConformance, isAlreadyChecked, isContainsTransparencyGroup, isFullCheckMode, isPdfObjectReadyToFlush, setFullCheckMode, setPdfAOutputIntentColorSpace, validatepublic PdfA2Checker(PdfAConformance aConformance)
aConformance - the required conformance, a or
u or bpublic void checkInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)
PdfACheckercheckInlineImage in class PdfA1CheckerinlineImage - a PdfStream containing the inline imagecurrentColorSpaces - a PdfDictionary containing the color spaces used in the documentpublic void checkColor(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream contentStream)
checkColor in class PdfA1CheckergState - canvas graphics statecolor - the color to checkcurrentColorSpaces - a PdfDictionary containing the color spaces used in the documentfill - whether the color is used for fill or stroke operationscontentStream - current content streampublic void checkColorSpace(PdfColorSpace colorSpace, PdfObject pdfObject, PdfDictionary currentColorSpaces, boolean checkAlternate, Boolean fill)
checkColorSpace in class PdfA1CheckercolorSpace - the color space to checkpdfObject - the pdf object to check color space incurrentColorSpaces - a PdfDictionary containing the color spaces used in the documentcheckAlternate - whether or not to also check the parent color spacefill - whether the color space is used for fill or stroke operationspublic void checkExtGState(CanvasGraphicsState extGState, PdfStream contentStream)
PdfACheckercheckExtGState in class PdfA1CheckerextGState - the graphics state to be checkedcontentStream - current content streampublic void checkSignature(PdfDictionary signatureDict)
PdfACheckercheckSignature in class PdfACheckersignatureDict - a PdfDictionary containing the signature.protected void checkNumberOfDeviceNComponents(PdfSpecialCs.DeviceN deviceN)
deviceN - the color space to checkprotected void checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
PdfACheckercheckNonSymbolicTrueTypeFont in class PdfA1CheckertrueTypeFont - the PdfTrueTypeFont to checkprotected double getMaxRealValue()
PdfA1CheckergetMaxRealValue in class PdfA1Checkerprotected int getMaxStringLength()
PdfA1CheckergetMaxStringLength in class PdfA1Checkerprotected void checkPdfArray(PdfArray array)
PdfACheckercheckPdfArray in class PdfA1Checkerarray - the PdfArray to checkprotected void checkPdfDictionary(PdfDictionary dictionary)
PdfACheckercheckPdfDictionary in class PdfA1Checkerdictionary - the PdfDictionary to checkprotected void checkAnnotation(PdfDictionary annotDic)
checkAnnotation in class PdfA1CheckerannotDic - the annotation PdfDictionary to be checkedprotected Set<PdfName> getAppearanceLessAnnotations()
protected void checkAnnotationAgainstActions(PdfDictionary annotDic)
A
or AA actions aren't allowed for specific type of annotation.annotDic - an annotation PDF dictionaryprotected Set<PdfName> getForbiddenAnnotations()
getForbiddenAnnotations in class PdfA1Checkerprotected void checkAppearanceStream(PdfStream appearanceStream)
PdfACheckercheckAppearanceStream in class PdfACheckerappearanceStream - the PdfStream to checkprotected void checkForm(PdfDictionary form)
PdfACheckercheckForm in class PdfA1Checkerform - the form PdfDictionary to be checkedprotected void checkCatalogAAConformance(PdfDictionary dict)
dict - the catalog dictionaryprotected void checkCatalogValidEntries(PdfDictionary catalogDict)
PdfACheckercheckCatalogValidEntries in class PdfA1CheckercatalogDict - the catalog PdfDictionary to be checkedprotected void checkPageSize(PdfDictionary page)
PdfACheckercheckPageSize in class PdfA1Checkerpage - the PdfDictionary of page which size being checkedprotected void checkFileSpec(PdfDictionary fileSpec)
PdfACheckercheckFileSpec in class PdfA1CheckerfileSpec - the PdfDictionary containing file specification to be checkedprotected void checkPdfStream(PdfStream stream)
PdfACheckercheckPdfStream in class PdfA1Checkerstream - the PdfStream to checkprotected void checkPageAAConformance(PdfDictionary dict)
dict - the page dictionaryprotected void checkPageObject(PdfDictionary pageDict, PdfDictionary pageResources)
PdfACheckercheckPageObject in class PdfA1CheckerpageDict - the PdfDictionary to checkpageResources - the page's resources dictionaryprotected void checkPageTransparency(PdfDictionary pageDict, PdfDictionary pageResources)
PdfACheckercheckPageTransparency in class PdfA1CheckerpageDict - the PdfDictionary contains contents for transparency to be checkedpageResources - the PdfDictionary contains resources for transparency to be checkedprotected void checkOutputIntents(PdfDictionary catalog)
PdfACheckercheckOutputIntents in class PdfA1Checkercatalog - the PdfDictionary of a catalog or page to checkprotected Set<PdfName> getForbiddenActions()
PdfACheckergetForbiddenActions in class PdfA1CheckerPdfName with forbidden actionsprotected Set<PdfName> getAllowedNamedActions()
PdfACheckergetAllowedNamedActions in class PdfA1CheckerPdfName with allowed named actionsprotected void checkPageColorsUsages(PdfDictionary pageDict, PdfDictionary pageResources)
checkPageColorsUsages in class PdfA1CheckerpageDict - the PdfDictionary contains contents for colors to be checkedpageResources - the PdfDictionary contains resources for colors to be checkedprotected void checkImage(PdfStream image, PdfDictionary currentColorSpaces)
PdfACheckercheckImage in class PdfA1Checkerimage - the image to checkcurrentColorSpaces - the PdfDictionary containing the color spaces used in the documentpublic void checkFontGlyphs(PdfFont font, PdfStream contentStream)
PdfACheckercheckFontGlyphs in class PdfA1Checkerfont - PdfFont to be checkedcontentStream - stream containing checked fontprotected void checkFormXObject(PdfStream form)
checkFormXObject(PdfStream form, PdfStream contentStream) method.checkFormXObject in class PdfA1Checkerform - the PdfStream to checkprotected void checkFormXObject(PdfStream form, PdfStream contentStream)
protected void checkTransparencyGroup(PdfStream form, PdfStream contentStream)
protected void checkContentConfigurationDictAgainstAsKey(PdfDictionary config)
config - a content configuration dictionaryprotected String getTransparencyErrorMessage()
protected void checkBlendMode(PdfName blendMode)
blendMode - blend mode name to check.Copyright © 1998–2025 Apryse Group NV. All rights reserved.