public class PdfA4Checker extends PdfA3Checker
PdfA3Checker.
The specification implemented by this class is ISO 19005-4
allowedAFRelationshipsallowedBlendModes, allowedFilters, allowedInlineImageFilters, forbiddenActions, forbiddenAnnotations, transparencyObjectsallowedNamedActions, allowedRenderingIntents, contentAnnotationscheckedObjects, checkedObjectsColorspace, cmykIsUsed, cmykUsedObjects, conformanceLevel, grayIsUsed, 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, rgbIsUsed, rgbUsedObjects| Constructor and Description |
|---|
PdfA4Checker(PdfAConformanceLevel conformanceLevel)
Creates a PdfA4Checker with the required conformance level
|
| 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 |
checkBlendMode(PdfName blendMode)
Check if blendMode is compatible with pdf/a standard being used.
|
void |
checkCanvasStack(char stackOperation)
This method checks compliance with the graphics state architectural
limitation, explained by
PdfAChecker.maxGsStackDepth. |
protected void |
checkCatalog(PdfCatalog catalog)
Verify the conformity of the pdf catalog.
|
protected void |
checkCatalogAAConformance(PdfDictionary dict)
Check the conformity of the AA dictionary on catalog level.
|
protected void |
checkCatalogValidEntries(PdfDictionary catalogDict)
Checks if entries in catalog dictionary are valid.
|
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.
|
protected void |
checkFormXObject(PdfStream form,
PdfStream contentStream)
Verify the conformity of the Form XObject with appropriate
specification.
|
protected void |
checkMetaData(PdfDictionary catalog)
Performs a number of checks on the metadata of the document.
|
protected void |
checkNumberOfDeviceNComponents(PdfSpecialCs.DeviceN deviceN) |
protected void |
checkPageAAConformance(PdfDictionary dict)
Check the conformity of the AA dictionary on catalog level.
|
protected void |
checkPageColorsUsages(PdfDictionary pageDict,
PdfDictionary pageResources)
Verify the conformity of used color spaces on the page.
|
protected void |
checkPageTransparency(PdfDictionary pageDict,
PdfDictionary pageResources)
Verify the conformity of the page transparency.
|
protected void |
checkPdfNumber(PdfNumber number)
Verify the conformity of the PDF number.
|
void |
checkSignatureType(boolean isCAdES)
This method checks compliance of the signature type
|
protected void |
checkTrailer(PdfDictionary trailer)
Verify the conformity of the trailer dictionary.
|
protected void |
checkWidgetAAConformance(PdfDictionary dict)
Check the conformity of the AA dictionary on widget level.
|
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 int |
getMaxNameLength()
Retrieve maximum allowed length of the name object.
|
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.
|
checkAppearanceStream, checkColor, checkFontGlyphs, checkForm, checkFormXObject, checkImage, checkInlineImage, checkNonSymbolicTrueTypeFont, checkOutputIntents, checkPageObject, checkPageSize, checkPdfArray, checkPdfDictionary, checkPdfStream, checkSignature, checkTransparencyGroup, getAllowedNamedActions, getMaxRealValuecheckAction, checkColorsUsages, checkContentStream, checkCrypto, checkFont, checkLogicalStructure, checkPdfName, checkPdfString, checkRenderingIntent, checkSymbolicTrueTypeFont, checkText, checkXrefTable, getFormFields, getMaxIntegerValue, getMaxNumberOfIndirectObjects, getMinIntegerValuecheckColorSpace, checkContentStreamObject, checkDocument, checkFlag, checkPdfObject, checkResources, checkResources, checkResourcesOfAppearanceStreams, checkSinglePage, checkStructure, checkTagStructureElement, getConformanceLevel, isAlreadyChecked, isContainsTransparencyGroup, isFullCheckMode, objectIsChecked, setFullCheckMode, setPdfAOutputIntentColorSpacepublic PdfA4Checker(PdfAConformanceLevel conformanceLevel)
conformanceLevel - the required conformance levelpublic void checkColorSpace(PdfColorSpace colorSpace, PdfObject pdfObject, PdfDictionary currentColorSpaces, boolean checkAlternate, Boolean fill)
checkColorSpace in class PdfA2CheckercolorSpace - 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 operationsprotected void checkPageColorsUsages(PdfDictionary pageDict, PdfDictionary pageResources)
checkPageColorsUsages in class PdfA2CheckerpageDict - the PdfDictionary contains contents for colors to be checked.pageResources - the PdfDictionary contains resources for colors to be checked.protected void checkTrailer(PdfDictionary trailer)
checkTrailer in class PdfA1Checkertrailer - the PdfDictionary of trailer to checkprotected void checkCatalog(PdfCatalog catalog)
checkCatalog in class PdfA1Checkercatalog - the PdfCatalog of trailer to check.protected void checkCatalogValidEntries(PdfDictionary catalogDict)
checkCatalogValidEntries in class PdfA2CheckercatalogDict - the catalog PdfDictionary to be checkedprotected void checkFileSpec(PdfDictionary fileSpec)
checkFileSpec in class PdfA3CheckerfileSpec - the PdfDictionary containing file specification to be checkedprotected void checkPageTransparency(PdfDictionary pageDict, PdfDictionary pageResources)
checkPageTransparency in class PdfA2CheckerpageDict - the PdfDictionary contains contents for transparency to be checkedpageResources - the PdfDictionary contains resources for transparency to be checkedprotected void checkCatalogAAConformance(PdfDictionary dict)
checkCatalogAAConformance in class PdfA2Checkerdict - the catalog dictionaryprotected void checkPageAAConformance(PdfDictionary dict)
checkPageAAConformance in class PdfA2Checkerdict - the catalog dictionaryprotected void checkPdfNumber(PdfNumber number)
checkPdfNumber in class PdfA1Checkernumber - the PdfNumber to checkpublic void checkCanvasStack(char stackOperation)
PdfAChecker.maxGsStackDepth.checkCanvasStack in class PdfA1CheckerstackOperation - the operation to check the graphics state counter forpublic void checkSignatureType(boolean isCAdES)
checkSignatureType in class PdfA1CheckerisCAdES - true is CAdES sig type is used, false otherwise.protected int getMaxStringLength()
getMaxStringLength in class PdfA2Checkerprotected void checkNumberOfDeviceNComponents(PdfSpecialCs.DeviceN deviceN)
checkNumberOfDeviceNComponents in class PdfA2Checkerpublic void checkExtGState(CanvasGraphicsState extGState, PdfStream contentStream)
PdfACheckercheckExtGState in class PdfA2CheckerextGState - the graphics state to be checkedcontentStream - current content streamprotected void checkFormXObject(PdfStream form, PdfStream contentStream)
checkFormXObject in class PdfA2Checkerform - the PdfStream to be checkedcontentStream - the PdfStream current content streamprotected void checkAnnotation(PdfDictionary annotDic)
checkAnnotation in class PdfA2CheckerannotDic - the annotation PdfDictionary to be checkedprotected Set<PdfName> getForbiddenAnnotations()
getForbiddenAnnotations in class PdfA2Checkerprotected Set<PdfName> getAppearanceLessAnnotations()
getAppearanceLessAnnotations in class PdfA2Checkerprotected void checkWidgetAAConformance(PdfDictionary dict)
dict - the widget dictionaryprotected void checkMetaData(PdfDictionary catalog)
PdfACheckercheckMetaData in class PdfA1Checkercatalog - the catalog PdfDictionary to checkprotected void checkAnnotationAgainstActions(PdfDictionary annotDic)
A
or AA actions aren't allowed for specific type of annotation.checkAnnotationAgainstActions in class PdfA2CheckerannotDic - an annotation PDF dictionaryprotected Set<PdfName> getForbiddenActions()
getForbiddenActions in class PdfA2CheckerPdfName with forbidden actionsprotected void checkContentConfigurationDictAgainstAsKey(PdfDictionary config)
checkContentConfigurationDictAgainstAsKey in class PdfA2Checkerconfig - a content configuration dictionaryprotected String getTransparencyErrorMessage()
getTransparencyErrorMessage in class PdfA2Checkerprotected void checkBlendMode(PdfName blendMode)
checkBlendMode in class PdfA2CheckerblendMode - blend mode name to check.protected int getMaxNameLength()
getMaxNameLength in class PdfA1CheckerCopyright © 1998–2023 Apryse Group NV. All rights reserved.