public abstract class PdfAChecker extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Set<PdfObject> |
checkedObjects
Contains some objects that are already checked.
|
protected Map<PdfObject,PdfColorSpace> |
checkedObjectsColorspace |
protected boolean |
cmykIsUsed |
protected PdfAConformanceLevel |
conformanceLevel |
protected boolean |
grayIsUsed |
protected int |
gsStackDepth |
static String |
ICC_COLOR_SPACE_CMYK
The Cyan-Magenta-Yellow-Key (black) color profile as defined by the
International Color Consortium.
|
static String |
ICC_COLOR_SPACE_GRAY
The Grayscale color profile as defined by the International Color
Consortium.
|
static String |
ICC_COLOR_SPACE_RGB
The Red-Green-Blue color profile as defined by the International Color
Consortium.
|
static String |
ICC_DEVICE_CLASS_MONITOR_PROFILE
The Monitor device class
|
static String |
ICC_DEVICE_CLASS_OUTPUT_PROFILE
The Output device class
|
protected Logger |
LOGGER
Deprecated.
Use slf4j logging instead.
|
static int |
maxGsStackDepth
The maximum Graphics State stack depth in PDF/A documents, i.e.
|
protected String |
pdfAOutputIntentColorSpace |
protected boolean |
rgbIsUsed |
| Modifier | Constructor and Description |
|---|---|
protected |
PdfAChecker(PdfAConformanceLevel conformanceLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkAction(PdfDictionary action) |
protected abstract void |
checkAnnotation(PdfDictionary annotDic) |
abstract void |
checkCanvasStack(char stackOperation)
This method checks compliance with the graphics state architectural
limitation, explained by
maxGsStackDepth. |
protected abstract void |
checkCatalogValidEntries(PdfDictionary catalogDict) |
abstract 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.
|
abstract 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 abstract void |
checkColorsUsages() |
void |
checkDocument(PdfCatalog catalog)
This method checks a number of document-wide requirements of the PDF/A
standard.
|
abstract 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 abstract void |
checkFileSpec(PdfDictionary fileSpec) |
protected static boolean |
checkFlag(int flags,
int flag) |
void |
checkFont(PdfFont pdfFont)
Performs a number of checks on the font.
|
protected abstract void |
checkForm(PdfDictionary form) |
protected abstract void |
checkFormXObject(PdfStream form) |
protected abstract void |
checkImage(PdfStream image,
PdfDictionary currentColorSpaces) |
abstract void |
checkInlineImage(PdfStream inlineImage,
PdfDictionary currentColorSpaces)
This method checks compliance with the inline image restrictions in the
PDF/A specs, specifically filter parameters.
|
protected abstract void |
checkLogicalStructure(PdfDictionary catalog) |
protected abstract void |
checkMetaData(PdfDictionary catalog) |
protected void |
checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont) |
protected abstract void |
checkOutputIntents(PdfDictionary catalog) |
protected abstract void |
checkPageObject(PdfDictionary page,
PdfDictionary pageResources) |
protected abstract void |
checkPageSize(PdfDictionary page) |
protected abstract void |
checkPdfNumber(PdfNumber number) |
void |
checkPdfObject(PdfObject obj)
This method checks the requirements that must be fulfilled by a COS
object in a PDF/A document.
|
protected abstract void |
checkPdfStream(PdfStream stream) |
protected abstract void |
checkPdfString(PdfString string) |
abstract void |
checkRenderingIntent(PdfName intent)
Checks whether the rendering intent of the document is within the allowed
range of intents.
|
protected void |
checkResources(PdfDictionary resources) |
protected void |
checkResourcesOfAppearanceStreams(PdfDictionary appearanceStreamsDict) |
void |
checkSinglePage(PdfPage page)
This method checks all requirements that must be fulfilled by a page in a
PDF/A document.
|
protected static boolean |
checkStructure(PdfAConformanceLevel conformanceLevel) |
protected void |
checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont) |
void |
checkTagStructureElement(PdfObject obj)
This method checks compliance of the tag structure elements, such as struct elements
or parent tree entries.
|
protected abstract void |
checkTrailer(PdfDictionary trailer) |
protected abstract Set<PdfName> |
getAllowedNamedActions() |
PdfAConformanceLevel |
getConformanceLevel()
Gets the
PdfAConformanceLevel for this file. |
protected abstract Set<PdfName> |
getForbiddenActions() |
protected boolean |
isAlreadyChecked(PdfDictionary dictionary) |
boolean |
objectIsChecked(PdfObject object)
Remembers which objects have already been checked, in order to avoid
redundant checks.
|
@Deprecated protected transient Logger LOGGER
public static final String ICC_COLOR_SPACE_RGB
public static final String ICC_COLOR_SPACE_CMYK
public static final String ICC_COLOR_SPACE_GRAY
public static final String ICC_DEVICE_CLASS_OUTPUT_PROFILE
public static final String ICC_DEVICE_CLASS_MONITOR_PROFILE
public static final int maxGsStackDepth
q that
may be opened (i.e. not yet closed by a corresponding Q) at
any point in a content stream sequence.
Defined as 28 by PDF/A-1 section 6.1.12, by referring to the PDF spec
Appendix C table 1 "architectural limits".protected PdfAConformanceLevel conformanceLevel
protected String pdfAOutputIntentColorSpace
protected int gsStackDepth
protected boolean rgbIsUsed
protected boolean cmykIsUsed
protected boolean grayIsUsed
protected Set<PdfObject> checkedObjects
protected Map<PdfObject,PdfColorSpace> checkedObjectsColorspace
protected PdfAChecker(PdfAConformanceLevel conformanceLevel)
public void checkDocument(PdfCatalog catalog)
catalog - The catalog being checkedpublic void checkSinglePage(PdfPage page)
page - the page that must be checkedpublic void checkPdfObject(PdfObject obj)
obj - the COS object that must be checkedpublic PdfAConformanceLevel getConformanceLevel()
PdfAConformanceLevel for this file.public boolean objectIsChecked(PdfObject object)
object - the object to checkpublic void checkTagStructureElement(PdfObject obj)
obj - an object that represents tag structure element.public abstract void checkCanvasStack(char stackOperation)
maxGsStackDepth.stackOperation - the operation to check the graphics state counter forpublic abstract void checkInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)
inlineImage - a PdfStream containing the inline imagecurrentColorSpaces - a PdfDictionary containing the color spaces used in the documentpublic abstract void checkColor(Color color, PdfDictionary currentColorSpaces, Boolean fill)
color - the color to checkcurrentColorSpaces - a PdfDictionary containing the color spaces used in the documentfill - whether the color is used for fill or stroke operationspublic abstract void checkColorSpace(PdfColorSpace colorSpace, PdfDictionary currentColorSpaces, boolean checkAlternate, Boolean fill)
colorSpace - the color space to checkcurrentColorSpaces - 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 abstract void checkRenderingIntent(PdfName intent)
intent - the intent to be analyzedpublic abstract void checkExtGState(CanvasGraphicsState extGState)
extGState - the graphics state to be checkedpublic void checkFont(PdfFont pdfFont)
pdfFont - font to be checkedprotected abstract void checkAction(PdfDictionary action)
protected abstract void checkAnnotation(PdfDictionary annotDic)
protected abstract void checkCatalogValidEntries(PdfDictionary catalogDict)
protected abstract void checkColorsUsages()
protected abstract void checkImage(PdfStream image, PdfDictionary currentColorSpaces)
protected abstract void checkFileSpec(PdfDictionary fileSpec)
protected abstract void checkForm(PdfDictionary form)
protected abstract void checkFormXObject(PdfStream form)
protected abstract void checkLogicalStructure(PdfDictionary catalog)
protected abstract void checkMetaData(PdfDictionary catalog)
protected void checkNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
protected abstract void checkOutputIntents(PdfDictionary catalog)
protected abstract void checkPageObject(PdfDictionary page, PdfDictionary pageResources)
protected abstract void checkPageSize(PdfDictionary page)
protected abstract void checkPdfNumber(PdfNumber number)
protected abstract void checkPdfStream(PdfStream stream)
protected abstract void checkPdfString(PdfString string)
protected void checkSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)
protected abstract void checkTrailer(PdfDictionary trailer)
protected void checkResources(PdfDictionary resources)
protected static boolean checkFlag(int flags,
int flag)
protected static boolean checkStructure(PdfAConformanceLevel conformanceLevel)
protected boolean isAlreadyChecked(PdfDictionary dictionary)
protected void checkResourcesOfAppearanceStreams(PdfDictionary appearanceStreamsDict)
Copyright © 1998–2018 iText Group NV. All rights reserved.