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, LOGGER, 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) |
protected void |
checkAnnotation(PdfDictionary annotDic) |
void |
checkCanvasStack(char stackOperation)
This method checks compliance with the graphics state architectural limitation, explained by PdfAChecker.maxGsStackDepth .
|
protected void |
checkCatalogValidEntries(PdfDictionary catalogDict) |
void |
checkColor(Color color, PdfDictionary currentColorSpaces, Boolean fill)
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() |
void |
checkExtGState(CanvasGraphicsState extGState)
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) |
void |
checkFont(PdfFont pdfFont)
Performs a number of checks on the font.
|
protected void |
checkForm(PdfDictionary form) |
protected void |
checkFormXObject(PdfStream form) |
protected void |
checkImage(PdfStream image, PdfDictionary currentColorSpaces) |
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) |
protected void |
checkMetaData(PdfDictionary catalog) |
protected void |
checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont) |
protected void |
checkOutputIntents(PdfDictionary catalog) |
protected void |
checkPageObject(PdfDictionary pageDict, PdfDictionary pageResources) |
protected void |
checkPageSize(PdfDictionary page) |
protected void |
checkPdfNumber(PdfNumber number) |
protected void |
checkPdfStream(PdfStream stream) |
protected void |
checkPdfString(PdfString 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) |
protected void |
checkTrailer(PdfDictionary trailer) |
protected Set<PdfName> |
getAllowedNamedActions() |
protected Set<PdfName> |
getForbiddenActions() |
protected PdfArray |
getFormFields(PdfArray array) |
protected double |
getMaxRealValue() |
protected int |
getMaxStringLength() |
checkDocument, checkFlag, checkPdfObject, checkResources, checkResourcesOfAppearanceStreams, checkSinglePage, checkStructure, checkTagStructureElement, getConformanceLevel, isAlreadyChecked, objectIsChecked
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)
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
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
protected Set<PdfName> getForbiddenActions()
getForbiddenActions
in class PdfAChecker
protected Set<PdfName> getAllowedNamedActions()
getAllowedNamedActions
in class PdfAChecker
protected void checkColorsUsages()
checkColorsUsages
in class PdfAChecker
public void checkExtGState(CanvasGraphicsState extGState)
PdfAChecker
checkExtGState
in class PdfAChecker
extGState
- the graphics state to be checked
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 checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
checkNonSymbolicTrueTypeFont
in class PdfAChecker
protected void checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
checkSymbolicTrueTypeFont
in class PdfAChecker
protected void checkImage(PdfStream image, PdfDictionary currentColorSpaces)
checkImage
in class PdfAChecker
protected void checkFormXObject(PdfStream form)
checkFormXObject
in class PdfAChecker
protected void checkLogicalStructure(PdfDictionary catalog)
checkLogicalStructure
in class PdfAChecker
protected void checkMetaData(PdfDictionary catalog)
checkMetaData
in class PdfAChecker
protected void checkOutputIntents(PdfDictionary catalog)
checkOutputIntents
in class PdfAChecker
protected void checkPdfNumber(PdfNumber number)
checkPdfNumber
in class PdfAChecker
protected double getMaxRealValue()
protected void checkPdfStream(PdfStream stream)
checkPdfStream
in class PdfAChecker
protected void checkPdfString(PdfString string)
checkPdfString
in class PdfAChecker
protected int getMaxStringLength()
protected void checkPageSize(PdfDictionary page)
checkPageSize
in class PdfAChecker
protected void checkFileSpec(PdfDictionary fileSpec)
checkFileSpec
in class PdfAChecker
protected void checkAnnotation(PdfDictionary annotDic)
checkAnnotation
in class PdfAChecker
protected void checkForm(PdfDictionary form)
checkForm
in class PdfAChecker
protected void checkAction(PdfDictionary action)
checkAction
in class PdfAChecker
protected void checkCatalogValidEntries(PdfDictionary catalogDict)
checkCatalogValidEntries
in class PdfAChecker
protected void checkPageObject(PdfDictionary pageDict, PdfDictionary pageResources)
checkPageObject
in class PdfAChecker
protected void checkTrailer(PdfDictionary trailer)
checkTrailer
in class PdfAChecker
Copyright © 1998–2017 iText Group NV. All rights reserved.