Table of Contents

Class PdfA2Checker

Namespace
iText.Pdfa.Checker
Assembly
itext.pdfa.dll

PdfA2Checker defines the requirements of the PDF/A-2 standard and contains a number of methods that override the implementations of its superclass PdfA1Checker.

public class PdfA2Checker : PdfA1Checker, IValidationChecker
Inheritance
PdfA2Checker
Implements
Derived
Inherited Members

Remarks

PdfA2Checker defines the requirements of the PDF/A-2 standard and contains a number of methods that override the implementations of its superclass PdfA1Checker.

The specification implemented by this class is ISO 19005-2

Constructors

PdfA2Checker(PdfAConformanceLevel)

Creates a PdfA2Checker with the required conformance level

public PdfA2Checker(PdfAConformanceLevel conformanceLevel)

Parameters

conformanceLevel PdfAConformanceLevel

the required conformance level, a or u or b

Fields

allowedBlendModes

protected static readonly ICollection<PdfName> allowedBlendModes

Field Value

ICollection<PdfName>

allowedFilters

protected static readonly ICollection<PdfName> allowedFilters

Field Value

ICollection<PdfName>

allowedInlineImageFilters

protected static readonly ICollection<PdfName> allowedInlineImageFilters

Field Value

ICollection<PdfName>

apLessAnnotations

protected static readonly ICollection<PdfName> apLessAnnotations

Field Value

ICollection<PdfName>

forbiddenActions

protected static readonly ICollection<PdfName> forbiddenActions

Field Value

ICollection<PdfName>

forbiddenAnnotations

protected static readonly ICollection<PdfName> forbiddenAnnotations

Field Value

ICollection<PdfName>

transparencyObjects

protected ICollection<PdfObject> transparencyObjects

Field Value

ICollection<PdfObject>

Methods

CheckAnnotation(PdfDictionary)

protected override void CheckAnnotation(PdfDictionary annotDic)

Parameters

annotDic PdfDictionary

CheckAnnotationAgainstActions(PdfDictionary)

Checked annotation against actions, exception will be thrown if either A or AA actions aren't allowed for specific type of annotation.

protected virtual void CheckAnnotationAgainstActions(PdfDictionary annotDic)

Parameters

annotDic PdfDictionary

an annotation PDF dictionary

CheckAppearanceStream(PdfStream)

protected override void CheckAppearanceStream(PdfStream appearanceStream)

Parameters

appearanceStream PdfStream

CheckBlendMode(PdfName)

Check if blendMode is compatible with pdf/a standard being used.

protected virtual void CheckBlendMode(PdfName blendMode)

Parameters

blendMode PdfName

blend mode name to check.

CheckCatalogAAConformance(PdfDictionary)

Checks if the catalog is compliant with the PDF/A-2 standard.

protected virtual void CheckCatalogAAConformance(PdfDictionary dict)

Parameters

dict PdfDictionary

the catalog dictionary

CheckCatalogValidEntries(PdfDictionary)

protected override void CheckCatalogValidEntries(PdfDictionary catalogDict)

Parameters

catalogDict PdfDictionary

CheckColor(Color, PdfDictionary, bool?, PdfStream)

[Obsolete]
public override void CheckColor(Color color, PdfDictionary currentColorSpaces, bool? fill, PdfStream contentStream)

Parameters

color Color
currentColorSpaces PdfDictionary
fill bool?
contentStream PdfStream

CheckColor(CanvasGraphicsState, Color, PdfDictionary, bool?, PdfStream)

public override void CheckColor(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, bool? fill, PdfStream contentStream)

Parameters

gState CanvasGraphicsState
color Color
currentColorSpaces PdfDictionary
fill bool?
contentStream PdfStream

CheckColorSpace(PdfColorSpace, PdfObject, PdfDictionary, bool, bool?)

public override void CheckColorSpace(PdfColorSpace colorSpace, PdfObject pdfObject, PdfDictionary currentColorSpaces, bool checkAlternate, bool? fill)

Parameters

colorSpace PdfColorSpace
pdfObject PdfObject
currentColorSpaces PdfDictionary
checkAlternate bool
fill bool?

CheckContentConfigurationDictAgainstAsKey(PdfDictionary)

Check optional content configuration dictionary against AS key.

protected virtual void CheckContentConfigurationDictAgainstAsKey(PdfDictionary config)

Parameters

config PdfDictionary

a content configuration dictionary

CheckExtGState(CanvasGraphicsState, PdfStream)

public override void CheckExtGState(CanvasGraphicsState extGState, PdfStream contentStream)

Parameters

extGState CanvasGraphicsState
contentStream PdfStream

CheckFileSpec(PdfDictionary)

protected override void CheckFileSpec(PdfDictionary fileSpec)

Parameters

fileSpec PdfDictionary

CheckFontGlyphs(PdfFont, PdfStream)

public override void CheckFontGlyphs(PdfFont font, PdfStream contentStream)

Parameters

font PdfFont
contentStream PdfStream

CheckForm(PdfDictionary)

protected override void CheckForm(PdfDictionary form)

Parameters

form PdfDictionary

CheckFormXObject(PdfStream)

For pdf/a-2+ checkers use the checkFormXObject(PdfStream form, PdfStream contentStream) method

[Obsolete]
protected override void CheckFormXObject(PdfStream form)

Parameters

form PdfStream

the PdfStream to check

CheckFormXObject(PdfStream, PdfStream)

Verify the conformity of the Form XObject with appropriate specification.

protected virtual void CheckFormXObject(PdfStream form, PdfStream contentStream)

Parameters

form PdfStream

the PdfStream to be checked

contentStream PdfStream

the PdfStream current content stream

Remarks

Verify the conformity of the Form XObject with appropriate specification. Throws PdfAConformanceException if any discrepancy was found

CheckImage(PdfStream, PdfDictionary)

protected override void CheckImage(PdfStream image, PdfDictionary currentColorSpaces)

Parameters

image PdfStream
currentColorSpaces PdfDictionary

CheckInlineImage(PdfStream, PdfDictionary)

public override void CheckInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)

Parameters

inlineImage PdfStream
currentColorSpaces PdfDictionary

CheckNonSymbolicTrueTypeFont(PdfTrueTypeFont)

protected override void CheckNonSymbolicTrueTypeFont(PdfTrueTypeFont trueTypeFont)

Parameters

trueTypeFont PdfTrueTypeFont

CheckNumberOfDeviceNComponents(DeviceN)

protected virtual void CheckNumberOfDeviceNComponents(PdfSpecialCs.DeviceN deviceN)

Parameters

deviceN PdfSpecialCs.DeviceN

CheckOutputIntents(PdfDictionary)

protected override void CheckOutputIntents(PdfDictionary catalog)

Parameters

catalog PdfDictionary

CheckPageAAConformance(PdfDictionary)

Checks if the page is compliant with the PDF/A-2 standard.

protected virtual void CheckPageAAConformance(PdfDictionary dict)

Parameters

dict PdfDictionary

the page dictionary

CheckPageColorsUsages(PdfDictionary, PdfDictionary)

protected override void CheckPageColorsUsages(PdfDictionary pageDict, PdfDictionary pageResources)

Parameters

pageDict PdfDictionary
pageResources PdfDictionary

CheckPageObject(PdfDictionary, PdfDictionary)

protected override void CheckPageObject(PdfDictionary pageDict, PdfDictionary pageResources)

Parameters

pageDict PdfDictionary
pageResources PdfDictionary

CheckPageSize(PdfDictionary)

protected override void CheckPageSize(PdfDictionary page)

Parameters

page PdfDictionary

CheckPageTransparency(PdfDictionary, PdfDictionary)

protected override void CheckPageTransparency(PdfDictionary pageDict, PdfDictionary pageResources)

Parameters

pageDict PdfDictionary
pageResources PdfDictionary

CheckPdfArray(PdfArray)

protected override void CheckPdfArray(PdfArray array)

Parameters

array PdfArray

CheckPdfDictionary(PdfDictionary)

protected override void CheckPdfDictionary(PdfDictionary dictionary)

Parameters

dictionary PdfDictionary

CheckPdfStream(PdfStream)

protected override void CheckPdfStream(PdfStream stream)

Parameters

stream PdfStream

CheckSignature(PdfDictionary)

public override void CheckSignature(PdfDictionary signatureDict)

Parameters

signatureDict PdfDictionary

CheckTransparencyGroup(PdfStream, PdfStream)

Verify the conformity of the transparency group XObject with appropriate specification.

protected virtual void CheckTransparencyGroup(PdfStream form, PdfStream contentStream)

Parameters

form PdfStream

the PdfStream transparency group XObject.

contentStream PdfStream

the PdfStream current content stream

Remarks

Verify the conformity of the transparency group XObject with appropriate specification. Throws PdfAConformanceException if any discrepancy was found

GetAllowedNamedActions()

protected override ICollection<PdfName> GetAllowedNamedActions()

Returns

ICollection<PdfName>

GetAppearanceLessAnnotations()

Gets annotation types which are allowed not to have appearance stream.

protected virtual ICollection<PdfName> GetAppearanceLessAnnotations()

Returns

ICollection<PdfName>

set of annotation names.

GetForbiddenActions()

protected override ICollection<PdfName> GetForbiddenActions()

Returns

ICollection<PdfName>

GetForbiddenAnnotations()

protected override ICollection<PdfName> GetForbiddenAnnotations()

Returns

ICollection<PdfName>

GetMaxRealValue()

protected override double GetMaxRealValue()

Returns

double

GetMaxStringLength()

protected override int GetMaxStringLength()

Returns

int

GetTransparencyErrorMessage()

Retrieve transparency error message valid for the pdf/a standard being used.

protected virtual string GetTransparencyErrorMessage()

Returns

string

error message.