public abstract class XProfileBase extends PdfProfile
Modifier and Type | Field and Description |
---|---|
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
|
_module, _parser, _profileText, _raf
Constructor and Description |
---|
XProfileBase(PdfModule module,
int xType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
getText, hasFilters, isAlreadyOK, satisfiesProfile, satisfiesThisProfile, xObjectsOK
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.public XProfileBase(PdfModule module, int xType)
module
- The module under which we are checking the profile.xType
- The type of PDF/X profile being checkedprotected boolean infoDictOK(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)
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.