|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.module.pdf.PdfProfile
edu.harvard.hul.ois.jhove.module.pdf.XProfileBase
public abstract class XProfileBase
Abstract base class for PDF profilers of the PDF/X family. See ISO Standard 15930-1, "Complete exchange using CMYK data (PDF/X-1 and PDF/X-1a)"
Field Summary | |
---|---|
protected boolean |
_bleedBoxPresent
Set to true if a BleedBox is found. |
protected int |
_xType
PDF-X type used by the subclass. |
static int |
PDFX1
Enumerated values for PDF-X type |
static int |
PDFX1A
Enumerated values for PDF-X type |
static int |
PDFX2
Enumerated values for PDF-X type |
static int |
PDFX3
Enumerated values for PDF-X type |
Fields inherited from class edu.harvard.hul.ois.jhove.module.pdf.PdfProfile |
---|
_module, _parser, _profileText, _raf |
Constructor Summary | |
---|---|
XProfileBase(PdfModule module,
int xType)
Constructor. |
Method Summary | |
---|---|
protected boolean |
bboxOK(boolean requireMediaBox)
Checks all the page objects for bounding boxes. |
protected boolean |
checkPrefsAgainstBleedBox()
Checks ViewerPreferences dictionary against MediaBox and BleedBox. |
protected boolean |
extGStateOK(PdfDictionary gs)
Checks if the ExtGState resource meets profile requirements. |
protected boolean |
filterOK(PdfObject filters,
boolean forbidLZW,
boolean forbidJBIG2)
Checks for forbidden filters in a Filters dictionary. |
protected boolean |
formObjectOK(PdfDictionary fo)
Checks the conformance of a form XObject. |
protected boolean |
imageObjectOK(PdfDictionary xo)
Checks if a single image XObject fits the profile |
protected boolean |
infoDictOK(java.lang.String xVersion)
Checks if the entries which are required in the document information dictionary by PDF-X/1 and X/3 are there. |
protected boolean |
isBleedBoxPresent()
Returns true if a BleedBox has been detected. |
protected boolean |
outputIntentsOK(PdfArray intents)
Checks if the OutputIntents of this document conform to profile requirements. |
protected boolean |
trailerDictOK()
Checks profile requirements on the trailer dictionary. |
protected boolean |
xObjectOK(PdfDictionary xo)
Checks a single XObject for xObjectsOK. |
Methods inherited from class edu.harvard.hul.ois.jhove.module.pdf.PdfProfile |
---|
getText, hasFilters, isAlreadyOK, satisfiesProfile, satisfiesThisProfile, xObjectsOK |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int PDFX1
public static int PDFX1A
public static int PDFX2
public static int PDFX3
protected int _xType
protected boolean _bleedBoxPresent
true
if a BleedBox is found.
Constructor Detail |
---|
public XProfileBase(PdfModule module, int xType)
module
- The module under which we are checking the profile.xType
- The type of PDF/X profile being checkedMethod Detail |
---|
protected boolean infoDictOK(java.lang.String xVersion)
protected boolean isBleedBoxPresent()
protected boolean outputIntentsOK(PdfArray intents)
protected boolean trailerDictOK()
protected boolean extGStateOK(PdfDictionary gs)
protected boolean xObjectOK(PdfDictionary xo)
xObjectOK
in class PdfProfile
protected boolean imageObjectOK(PdfDictionary xo)
protected boolean formObjectOK(PdfDictionary fo)
protected boolean bboxOK(boolean requireMediaBox)
protected boolean checkPrefsAgainstBleedBox()
protected boolean filterOK(PdfObject filters, boolean forbidLZW, boolean forbidJBIG2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |