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> |
forbiddenActions |
protected static Set<PdfName> |
forbiddenAnnotations |
allowedNamedActions, allowedRenderingIntents, contentAnnotationscheckedObjects, checkedObjectsColorspace, cmykIsUsed, conformanceLevel, grayIsUsed, 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, rgbIsUsed| Constructor and Description |
|---|
PdfA2Checker(PdfAConformanceLevel conformanceLevel)
Creates a PdfA2Checker 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 |
checkAppearanceStream(PdfStream appearanceStream)
Check single annotation appearance stream.
|
protected void |
checkCatalogValidEntries(PdfDictionary catalogDict)
Checks if entries in catalog dictionary are valid.
|
void |
checkColor(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, 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 |
checkColorsUsages()
Verify the conformity of used color spaces.
|
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)
Verify the conformity of the form XObject dictionary.
|
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 |
checkOutputIntents(PdfDictionary catalog)
Verify the conformity of the output intents array in the catalog dictionary.
|
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 Set<PdfName> |
getAllowedNamedActions()
Retrieve allowed actions in conforming document.
|
protected Set<PdfName> |
getForbiddenActions()
Retrieve forbidden actions in conforming document.
|
protected double |
getMaxRealValue()
Retrieve maximum allowed real value.
|
protected int |
getMaxStringLength()
Returns maximum allowed bytes length of the string in a PDF document.
|
checkAction, checkCanvasStack, checkContentStream, checkContentStreamObject, checkFont, checkLogicalStructure, checkMetaData, checkPdfName, checkPdfNumber, checkPdfString, checkRenderingIntent, checkSymbolicTrueTypeFont, checkTrailer, checkXrefTable, getFormFields, getMaxIntegerValue, getMaxNameLength, getMaxNumberOfIndirectObjects, getMinIntegerValuecheckDocument, checkFlag, checkPdfObject, checkResources, checkResourcesOfAppearanceStreams, checkSinglePage, checkStructure, checkTagStructureElement, getConformanceLevel, isAlreadyChecked, isContainsTransparencyGroup, isFullCheckMode, objectIsChecked, setFullCheckModepublic PdfA2Checker(PdfAConformanceLevel conformanceLevel)
conformanceLevel - the required conformance level, a or u or b
public void checkInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)
PdfAChecker
checkInlineImage in class PdfA1Checker
inlineImage - a PdfStream containing the inline image
currentColorSpaces - a PdfDictionary containing the color spaces used in the document
public void checkColor(Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream contentStream)
PdfAChecker
checkColor in class PdfA1Checker
color - the color to check
currentColorSpaces - a PdfDictionary containing the color spaces used in the document
fill - whether the color is used for fill or stroke operations
contentStream - current content stream
public void checkColorSpace(PdfColorSpace colorSpace, PdfDictionary currentColorSpaces, boolean checkAlternate, Boolean fill)
PdfAChecker
checkColorSpace in class PdfA1Checker
colorSpace - the color space to check
currentColorSpaces - a PdfDictionary containing the color spaces used in the document
checkAlternate - whether or not to also check the parent color space
fill - whether the color space is used for fill or stroke operations
public void checkExtGState(CanvasGraphicsState extGState, PdfStream contentStream)
PdfAChecker
checkExtGState in class PdfA1Checker
extGState - the graphics state to be checked
contentStream - current content stream
public void checkSignature(PdfDictionary signatureDict)
PdfAChecker
checkSignature in class PdfAChecker
signatureDict - a PdfDictionary containing the signature.
protected void checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
PdfAChecker
checkNonSymbolicTrueTypeFont in class PdfA1Checker
trueTypeFont - the PdfTrueTypeFont to check
protected double getMaxRealValue()
PdfA1Checker
getMaxRealValue in class PdfA1Checker
protected int getMaxStringLength()
PdfA1Checker
getMaxStringLength in class PdfA1Checker
protected void checkPdfArray(PdfArray array)
PdfAChecker
checkPdfArray in class PdfA1Checker
array - the PdfArray to check
protected void checkPdfDictionary(PdfDictionary dictionary)
PdfAChecker
checkPdfDictionary in class PdfA1Checker
dictionary - the PdfDictionary to check
protected void checkAnnotation(PdfDictionary annotDic)
PdfAChecker
checkAnnotation in class PdfA1Checker
annotDic - the annotation PdfDictionary to be checked
protected void checkAppearanceStream(PdfStream appearanceStream)
PdfAChecker
checkAppearanceStream in class PdfAChecker
appearanceStream - the PdfStream to check
protected void checkForm(PdfDictionary form)
PdfAChecker
checkForm in class PdfA1Checker
form - the form PdfDictionary to be checked
protected void checkCatalogValidEntries(PdfDictionary catalogDict)
PdfAChecker
checkCatalogValidEntries in class PdfA1Checker
catalogDict - the catalog PdfDictionary to be checked
protected void checkPageSize(PdfDictionary page)
PdfAChecker
checkPageSize in class PdfA1Checker
page - the PdfDictionary of page which size being checked
protected void checkFileSpec(PdfDictionary fileSpec)
PdfAChecker
checkFileSpec in class PdfA1Checker
fileSpec - the PdfDictionary containing file specification to be checked
protected void checkPdfStream(PdfStream stream)
PdfAChecker
checkPdfStream in class PdfA1Checker
stream - the PdfStream to check
protected void checkPageObject(PdfDictionary pageDict, PdfDictionary pageResources)
PdfAChecker
checkPageObject in class PdfA1Checker
pageDict - the PdfDictionary to check
pageResources - the page's resources dictionary
protected void checkPageTransparency(PdfDictionary pageDict, PdfDictionary pageResources)
PdfAChecker
checkPageTransparency in class PdfA1Checker
pageDict - the PdfDictionary contains contents for transparency to be checked
pageResources - the PdfDictionary contains resources for transparency to be checked
protected void checkOutputIntents(PdfDictionary catalog)
PdfAChecker
checkOutputIntents in class PdfA1Checker
catalog - the PdfDictionary to check
protected Set<PdfName> getForbiddenActions()
PdfAChecker
getForbiddenActions in class PdfA1Checker
PdfName with forbidden actions
protected Set<PdfName> getAllowedNamedActions()
PdfAChecker
getAllowedNamedActions in class PdfA1Checker
PdfName with allowed named actions
protected void checkColorsUsages()
PdfAChecker
checkColorsUsages in class PdfA1Checker
protected void checkImage(PdfStream image, PdfDictionary currentColorSpaces)
PdfAChecker
checkImage in class PdfA1Checker
image - the image to check
currentColorSpaces - the PdfDictionary containing the color spaces used in the document
public void checkFontGlyphs(PdfFont font, PdfStream contentStream)
PdfAChecker
checkFontGlyphs in class PdfA1Checker
font - PdfFont to be checked
contentStream - stream containing checked font
protected void checkFormXObject(PdfStream form)
PdfAChecker
checkFormXObject in class PdfA1Checker
form - the PdfStream to check
Copyright © 1998–2022 iText Group NV. All rights reserved.