Class PdfA2Checker
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-2Constructors
PdfA2Checker(PdfAConformanceLevel)
Creates a PdfA2Checker with the required conformance level
public PdfA2Checker(PdfAConformanceLevel conformanceLevel)
Parameters
conformanceLevel
PdfAConformanceLevelthe required conformance level,
a
oru
orb
Fields
allowedBlendModes
protected static readonly ICollection<PdfName> allowedBlendModes
Field Value
allowedFilters
protected static readonly ICollection<PdfName> allowedFilters
Field Value
allowedInlineImageFilters
protected static readonly ICollection<PdfName> allowedInlineImageFilters
Field Value
apLessAnnotations
protected static readonly ICollection<PdfName> apLessAnnotations
Field Value
forbiddenActions
protected static readonly ICollection<PdfName> forbiddenActions
Field Value
forbiddenAnnotations
protected static readonly ICollection<PdfName> forbiddenAnnotations
Field Value
transparencyObjects
protected ICollection<PdfObject> transparencyObjects
Field Value
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
PdfDictionaryan 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
PdfNameblend 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
PdfDictionarythe 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
ColorcurrentColorSpaces
PdfDictionaryfill
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
CanvasGraphicsStatecolor
ColorcurrentColorSpaces
PdfDictionaryfill
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
PdfColorSpacepdfObject
PdfObjectcurrentColorSpaces
PdfDictionarycheckAlternate
boolfill
bool?
CheckContentConfigurationDictAgainstAsKey(PdfDictionary)
Check optional content configuration dictionary against AS key.
protected virtual void CheckContentConfigurationDictAgainstAsKey(PdfDictionary config)
Parameters
config
PdfDictionarya content configuration dictionary
CheckExtGState(CanvasGraphicsState, PdfStream)
public override void CheckExtGState(CanvasGraphicsState extGState, PdfStream contentStream)
Parameters
extGState
CanvasGraphicsStatecontentStream
PdfStream
CheckFileSpec(PdfDictionary)
protected override void CheckFileSpec(PdfDictionary fileSpec)
Parameters
fileSpec
PdfDictionary
CheckFontGlyphs(PdfFont, PdfStream)
public override void CheckFontGlyphs(PdfFont font, PdfStream contentStream)
Parameters
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
CheckFormXObject(PdfStream, PdfStream)
Verify the conformity of the Form XObject with appropriate specification.
protected virtual void CheckFormXObject(PdfStream form, PdfStream contentStream)
Parameters
form
PdfStreamthe PdfStream to be checked
contentStream
PdfStreamthe 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
PdfStreamcurrentColorSpaces
PdfDictionary
CheckInlineImage(PdfStream, PdfDictionary)
public override void CheckInlineImage(PdfStream inlineImage, PdfDictionary currentColorSpaces)
Parameters
inlineImage
PdfStreamcurrentColorSpaces
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
PdfDictionarythe page dictionary
CheckPageColorsUsages(PdfDictionary, PdfDictionary)
protected override void CheckPageColorsUsages(PdfDictionary pageDict, PdfDictionary pageResources)
Parameters
pageDict
PdfDictionarypageResources
PdfDictionary
CheckPageObject(PdfDictionary, PdfDictionary)
protected override void CheckPageObject(PdfDictionary pageDict, PdfDictionary pageResources)
Parameters
pageDict
PdfDictionarypageResources
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
PdfDictionarypageResources
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
PdfStreamthe PdfStream transparency group XObject.
contentStream
PdfStreamthe 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
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
GetForbiddenAnnotations()
protected override ICollection<PdfName> GetForbiddenAnnotations()
Returns
GetMaxRealValue()
protected override double GetMaxRealValue()
Returns
GetMaxStringLength()
protected override int GetMaxStringLength()
Returns
GetTransparencyErrorMessage()
Retrieve transparency error message valid for the pdf/a standard being used.
protected virtual string GetTransparencyErrorMessage()
Returns
- string
error message.