public class PdfA1Checker extends PdfAChecker
PdfAChecker class.
The specification implemented by this class is ISO 19005-1
| Modifier and Type | Field and Description |
|---|---|
protected static Set<PdfName> |
allowedNamedActions |
protected static Set<PdfName> |
allowedRenderingIntents |
protected static Set<PdfName> |
contentAnnotations |
protected static Set<PdfName> |
forbiddenActions |
protected static Set<PdfName> |
forbiddenAnnotations |
checkedObjects, 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 |
|---|
PdfA1Checker(PdfAConformance aConformance)
Creates a PdfA1Checker with the required conformance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAction(PdfDictionary action)
Checks if the action is allowed.
|
protected void |
checkAnnotation(PdfDictionary annotDic)
Verify the conformity of the annotation dictionary.
|
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 |
checkCatalogValidEntries(PdfDictionary catalogDict)
Checks if entries in catalog dictionary are valid.
|
void |
checkColor(CanvasGraphicsState graphicsState,
Color color,
PdfDictionary currentColorSpaces,
Boolean fill,
PdfStream stream)
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 |
checkContentStream(PdfStream contentStream)
Attest content stream conformance with appropriate specification.
|
void |
checkCrypto(PdfObject crypto)
Verify the conformity of encryption usage.
|
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 |
checkFont(PdfFont pdfFont)
Performs a number of checks on the font.
|
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 |
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 |
checkLogicalStructure(PdfDictionary catalog)
Performs a number of checks on the logical structure of the document.
|
protected void |
checkMetaData(PdfDictionary catalog)
Performs a number of checks on the metadata of the document.
|
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 |
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 |
checkPdfName(PdfName name)
Verify the conformity of the PDF name.
|
protected void |
checkPdfNumber(PdfNumber number)
Verify the conformity of the PDF number.
|
protected void |
checkPdfStream(PdfStream stream)
Verify the conformity of the PDF stream.
|
protected void |
checkPdfString(PdfString string)
Verify the conformity of the PDF string.
|
void |
checkRenderingIntent(PdfName intent)
Checks whether the rendering intent of the document is within the allowed
range of intents.
|
void |
checkSignatureType(boolean isCAdES)
This method checks compliance of the signature type.
|
protected void |
checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
Verify the conformity of the symbolic TrueType font.
|
void |
checkText(String text,
PdfFont font)
Verify the conformity of the text written by the specified font.
|
protected void |
checkTrailer(PdfDictionary trailer)
Verify the conformity of the trailer dictionary.
|
void |
checkXrefTable(PdfXrefTable xrefTable)
Verify the conformity of the cross-reference table.
|
protected Set<PdfName> |
getAllowedNamedActions()
Retrieve allowed actions in conforming document.
|
protected Set<PdfName> |
getForbiddenActions()
Retrieve forbidden actions in conforming document.
|
protected Set<PdfName> |
getForbiddenAnnotations()
Gets forbidden annotation types.
|
protected PdfArray |
getFormFields(PdfArray array)
Deprecated.
in favour of
PdfCheckersUtil.getFormFields(PdfArray) |
protected long |
getMaxIntegerValue()
Retrieve maximal allowed integer value.
|
protected int |
getMaxNameLength()
Retrieve maximum allowed length of the name object.
|
protected long |
getMaxNumberOfIndirectObjects()
Retrieve maximum allowed number of indirect objects 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.
|
protected long |
getMinIntegerValue()
Retrieve minimal allowed integer value.
|
checkAppearanceStream, checkContentStreamObject, checkDocument, checkFlag, checkPdfObject, checkResources, checkResourcesOfAppearanceStreams, checkSignature, checkSinglePage, checkStructure, checkTagStructureElement, getAConformance, isAlreadyChecked, isContainsTransparencyGroup, isFullCheckMode, isPdfObjectReadyToFlush, setFullCheckMode, setPdfAOutputIntentColorSpace, validatepublic PdfA1Checker(PdfAConformance aConformance)
aConformance - the required conformance, a or
bpublic void checkCanvasStack(char stackOperation)
PdfACheckerPdfAChecker.maxGsStackDepth.checkCanvasStack in class PdfACheckerstackOperation - the operation to check the graphics state counter forpublic void checkInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)
PdfACheckercheckInlineImage in class PdfACheckerinlineImage - a PdfStream containing the inline imagecurrentColorSpaces - a PdfDictionary containing the color spaces used in the documentpublic void checkColor(CanvasGraphicsState graphicsState, Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream stream)
checkColor in class PdfACheckergraphicsState - 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 operationsstream - current content streampublic void checkColorSpace(PdfColorSpace colorSpace, PdfObject pdfObject, PdfDictionary currentColorSpaces, boolean checkAlternate, Boolean fill)
checkColorSpace in class PdfACheckercolorSpace - 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 checkXrefTable(PdfXrefTable xrefTable)
PdfACheckercheckXrefTable in class PdfACheckerxrefTable - is the Xref tableprotected Set<PdfName> getForbiddenActions()
PdfACheckergetForbiddenActions in class PdfACheckerPdfName with forbidden actionsprotected Set<PdfName> getAllowedNamedActions()
PdfACheckergetAllowedNamedActions in class PdfACheckerPdfName with allowed named actionsprotected long getMaxNumberOfIndirectObjects()
PdfACheckergetMaxNumberOfIndirectObjects in class PdfACheckerprotected void checkPageColorsUsages(PdfDictionary pageDict, PdfDictionary pageResources)
checkPageColorsUsages in class PdfACheckerpageDict - the PdfDictionary contains contents for colors to be checkedpageResources - the PdfDictionary contains resources for colors to be checkedpublic void checkExtGState(CanvasGraphicsState extGState, PdfStream contentStream)
PdfACheckercheckExtGState in class PdfACheckerextGState - the graphics state to be checkedcontentStream - current content streampublic void checkFontGlyphs(PdfFont font, PdfStream contentStream)
PdfACheckercheckFontGlyphs in class PdfACheckerfont - PdfFont to be checkedcontentStream - stream containing checked fontpublic void checkRenderingIntent(PdfName intent)
PdfACheckercheckRenderingIntent in class PdfACheckerintent - the intent to be analyzedpublic void checkFont(PdfFont pdfFont)
PdfACheckercheckFont in class PdfACheckerpdfFont - font to be checkedpublic void checkCrypto(PdfObject crypto)
checkCrypto in class PdfACheckercrypto - encryption object to verifypublic void checkSignatureType(boolean isCAdES)
checkSignatureType in class PdfACheckerisCAdES - true if CAdES signature type is used, false otherwisepublic void checkText(String text, PdfFont font)
checkText in class PdfACheckertext - text to verifyfont - font to verify the text againstprotected void checkPageTransparency(PdfDictionary pageDict, PdfDictionary pageResources)
PdfACheckercheckPageTransparency in class PdfACheckerpageDict - the PdfDictionary contains contents for transparency to be checkedpageResources - the PdfDictionary contains resources for transparency to be checkedprotected void checkContentStream(PdfStream contentStream)
PdfACheckercheckContentStream in class PdfACheckercontentStream - is a content stream to validateprotected void checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
PdfACheckercheckNonSymbolicTrueTypeFont in class PdfACheckertrueTypeFont - the PdfTrueTypeFont to checkprotected void checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
PdfACheckercheckSymbolicTrueTypeFont in class PdfACheckertrueTypeFont - the PdfTrueTypeFont to checkprotected void checkImage(PdfStream image, PdfDictionary currentColorSpaces)
PdfACheckercheckImage in class PdfACheckerimage - the image to checkcurrentColorSpaces - the PdfDictionary containing the color spaces used in the documentprotected void checkFormXObject(PdfStream form)
PdfACheckercheckFormXObject in class PdfACheckerform - the PdfStream to checkprotected void checkLogicalStructure(PdfDictionary catalog)
PdfACheckercheckLogicalStructure in class PdfACheckercatalog - the catalog PdfDictionary to checkprotected void checkMetaData(PdfDictionary catalog)
PdfACheckercheckMetaData in class PdfACheckercatalog - the catalog PdfDictionary to checkprotected void checkOutputIntents(PdfDictionary catalog)
PdfACheckercheckOutputIntents in class PdfACheckercatalog - the PdfDictionary of a catalog or page to checkprotected void checkPdfNumber(PdfNumber number)
PdfACheckercheckPdfNumber in class PdfACheckernumber - the PdfNumber to checkprotected double getMaxRealValue()
protected long getMaxIntegerValue()
protected long getMinIntegerValue()
protected void checkPdfArray(PdfArray array)
PdfACheckercheckPdfArray in class PdfACheckerarray - the PdfArray to checkprotected void checkPdfDictionary(PdfDictionary dictionary)
PdfACheckercheckPdfDictionary in class PdfACheckerdictionary - the PdfDictionary to checkprotected void checkPdfStream(PdfStream stream)
PdfACheckercheckPdfStream in class PdfACheckerstream - the PdfStream to checkprotected void checkPdfName(PdfName name)
PdfACheckercheckPdfName in class PdfACheckername - the PdfName to checkprotected int getMaxNameLength()
protected void checkPdfString(PdfString string)
PdfACheckercheckPdfString in class PdfACheckerstring - the PdfString to checkprotected int getMaxStringLength()
protected void checkPageSize(PdfDictionary page)
PdfACheckercheckPageSize in class PdfACheckerpage - the PdfDictionary of page which size being checkedprotected void checkFileSpec(PdfDictionary fileSpec)
PdfACheckercheckFileSpec in class PdfACheckerfileSpec - the PdfDictionary containing file specification to be checkedprotected void checkAnnotation(PdfDictionary annotDic)
checkAnnotation in class PdfACheckerannotDic - the annotation PdfDictionary to be checkedprotected Set<PdfName> getForbiddenAnnotations()
protected void checkForm(PdfDictionary form)
PdfACheckercheckForm in class PdfACheckerform - the form PdfDictionary to be checkedprotected void checkAction(PdfDictionary action)
PdfACheckercheckAction in class PdfACheckeraction - to be checkedprotected void checkCatalog(PdfCatalog catalog)
checkCatalog in class PdfACheckercatalog - the PdfCatalog of trailer to checkprotected void checkCatalogValidEntries(PdfDictionary catalogDict)
PdfACheckercheckCatalogValidEntries in class PdfACheckercatalogDict - the catalog PdfDictionary to be checkedprotected void checkPageObject(PdfDictionary pageDict, PdfDictionary pageResources)
PdfACheckercheckPageObject in class PdfACheckerpageDict - the PdfDictionary to checkpageResources - the page's resources dictionaryprotected void checkTrailer(PdfDictionary trailer)
PdfACheckercheckTrailer in class PdfACheckertrailer - the PdfDictionary of trailer to check@Deprecated protected PdfArray getFormFields(PdfArray array)
PdfCheckersUtil.getFormFields(PdfArray)array - the PdfArray of form fields PdfDictionary objectsPdfArray of form fieldsCopyright © 1998–2025 Apryse Group NV. All rights reserved.