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, 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 |
---|
PdfA1Checker(PdfAConformanceLevel conformanceLevel)
Creates a PdfA1Checker with the required conformance level
|
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 |
checkCatalogValidEntries(PdfDictionary catalogDict)
Checks if entries in catalog dictionary are valid.
|
void |
checkColor(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, 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.
|
protected void |
checkContentStream(PdfStream contentStream)
Attest content stream conformance with appropriate specification.
|
protected void |
checkContentStreamObject(PdfObject object)
Verify the conformity of the operand of content stream with appropriate specification.
|
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 |
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.
|
protected void |
checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
Verify the conformity of the symbolic TrueType 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 PdfArray |
getFormFields(PdfArray array)
|
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, checkDocument, checkFlag, checkPdfObject, checkResources, checkResourcesOfAppearanceStreams, checkSignature, checkSinglePage, checkStructure, checkTagStructureElement, getConformanceLevel, isAlreadyChecked, isContainsTransparencyGroup, isFullCheckMode, objectIsChecked, setFullCheckMode
public PdfA1Checker(PdfAConformanceLevel conformanceLevel)
conformanceLevel
- the required conformance level, a
or b
public void checkCanvasStack(char stackOperation)
PdfAChecker
PdfAChecker.maxGsStackDepth
.
checkCanvasStack
in class PdfAChecker
stackOperation
- the operation to check the graphics state counter for
public void checkInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)
PdfAChecker
checkInlineImage
in class PdfAChecker
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 stream)
PdfAChecker
checkColor
in class PdfAChecker
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
stream
- current content stream
public void checkColorSpace(PdfColorSpace colorSpace, PdfDictionary currentColorSpaces, boolean checkAlternate, Boolean fill)
PdfAChecker
checkColorSpace
in class PdfAChecker
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 checkXrefTable(PdfXrefTable xrefTable)
PdfAChecker
checkXrefTable
in class PdfAChecker
xrefTable
- is the Xref table
protected Set<PdfName> getForbiddenActions()
PdfAChecker
getForbiddenActions
in class PdfAChecker
PdfName
with forbidden actions
protected Set<PdfName> getAllowedNamedActions()
PdfAChecker
getAllowedNamedActions
in class PdfAChecker
PdfName
with allowed named actions
protected long getMaxNumberOfIndirectObjects()
PdfAChecker
getMaxNumberOfIndirectObjects
in class PdfAChecker
protected void checkColorsUsages()
PdfAChecker
checkColorsUsages
in class PdfAChecker
public void checkExtGState(CanvasGraphicsState extGState, PdfStream contentStream)
PdfAChecker
checkExtGState
in class PdfAChecker
extGState
- the graphics state to be checked
contentStream
- current content stream
public void checkFontGlyphs(PdfFont font, PdfStream contentStream)
PdfAChecker
checkFontGlyphs
in class PdfAChecker
font
- PdfFont
to be checked
contentStream
- stream containing checked font
public void checkRenderingIntent(PdfName intent)
PdfAChecker
checkRenderingIntent
in class PdfAChecker
intent
- the intent to be analyzed
public void checkFont(PdfFont pdfFont)
PdfAChecker
checkFont
in class PdfAChecker
pdfFont
- font to be checked
protected void checkPageTransparency(PdfDictionary pageDict, PdfDictionary pageResources)
PdfAChecker
checkPageTransparency
in class PdfAChecker
pageDict
- the PdfDictionary
contains contents for transparency to be checked
pageResources
- the PdfDictionary
contains resources for transparency to be checked
protected void checkContentStream(PdfStream contentStream)
PdfAChecker
checkContentStream
in class PdfAChecker
contentStream
- is a content stream to validate
protected void checkContentStreamObject(PdfObject object)
PdfAChecker
checkContentStreamObject
in class PdfAChecker
object
- is an operand of content stream to validate
protected void checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
PdfAChecker
checkNonSymbolicTrueTypeFont
in class PdfAChecker
trueTypeFont
- the PdfTrueTypeFont
to check
protected void checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
PdfAChecker
checkSymbolicTrueTypeFont
in class PdfAChecker
trueTypeFont
- the PdfTrueTypeFont
to check
protected void checkImage(PdfStream image, PdfDictionary currentColorSpaces)
PdfAChecker
checkImage
in class PdfAChecker
image
- the image to check
currentColorSpaces
- the PdfDictionary
containing the color spaces used in the document
protected void checkFormXObject(PdfStream form)
PdfAChecker
checkFormXObject
in class PdfAChecker
form
- the PdfStream
to check
protected void checkLogicalStructure(PdfDictionary catalog)
PdfAChecker
checkLogicalStructure
in class PdfAChecker
catalog
- the catalog PdfDictionary
to check
protected void checkMetaData(PdfDictionary catalog)
PdfAChecker
checkMetaData
in class PdfAChecker
catalog
- the catalog PdfDictionary
to check
protected void checkOutputIntents(PdfDictionary catalog)
PdfAChecker
checkOutputIntents
in class PdfAChecker
catalog
- the PdfDictionary
to check
protected void checkPdfNumber(PdfNumber number)
PdfAChecker
checkPdfNumber
in class PdfAChecker
number
- the PdfNumber
to check
protected double getMaxRealValue()
protected long getMaxIntegerValue()
protected long getMinIntegerValue()
protected void checkPdfArray(PdfArray array)
PdfAChecker
checkPdfArray
in class PdfAChecker
array
- the PdfArray
to check
protected void checkPdfDictionary(PdfDictionary dictionary)
PdfAChecker
checkPdfDictionary
in class PdfAChecker
dictionary
- the PdfDictionary
to check
protected void checkPdfStream(PdfStream stream)
PdfAChecker
checkPdfStream
in class PdfAChecker
stream
- the PdfStream
to check
protected void checkPdfName(PdfName name)
PdfAChecker
checkPdfName
in class PdfAChecker
name
- the PdfName
to check
protected int getMaxNameLength()
protected void checkPdfString(PdfString string)
PdfAChecker
checkPdfString
in class PdfAChecker
string
- the PdfString
to check
protected int getMaxStringLength()
protected void checkPageSize(PdfDictionary page)
PdfAChecker
checkPageSize
in class PdfAChecker
page
- the PdfDictionary
of page which size being checked
protected void checkFileSpec(PdfDictionary fileSpec)
PdfAChecker
checkFileSpec
in class PdfAChecker
fileSpec
- the PdfDictionary
containing file specification to be checked
protected void checkAnnotation(PdfDictionary annotDic)
PdfAChecker
checkAnnotation
in class PdfAChecker
annotDic
- the annotation PdfDictionary
to be checked
protected void checkForm(PdfDictionary form)
PdfAChecker
checkForm
in class PdfAChecker
form
- the form PdfDictionary
to be checked
protected void checkAction(PdfDictionary action)
PdfAChecker
checkAction
in class PdfAChecker
action
- to be checked
protected void checkCatalogValidEntries(PdfDictionary catalogDict)
PdfAChecker
checkCatalogValidEntries
in class PdfAChecker
catalogDict
- the catalog PdfDictionary
to be checked
protected void checkPageObject(PdfDictionary pageDict, PdfDictionary pageResources)
PdfAChecker
checkPageObject
in class PdfAChecker
pageDict
- the PdfDictionary
to check
pageResources
- the page's resources dictionary
protected void checkTrailer(PdfDictionary trailer)
PdfAChecker
checkTrailer
in class PdfAChecker
trailer
- the PdfDictionary
of trailer to check
protected PdfArray getFormFields(PdfArray array)
array
- the PdfArray
of form fields PdfDictionary
objects
PdfArray
of form fields
Copyright © 1998–2022 iText Group NV. All rights reserved.