public class PdfXConformanceImp extends Object implements PdfXConformance
Modifier and Type | Field and Description |
---|---|
protected int |
pdfxConformance
The value indicating if the PDF has to be in conformance with PDF/X.
|
static int |
PDFXKEY_CMYK
A key for an aspect that can be checked for PDF/X Conformance.
|
static int |
PDFXKEY_COLOR
A key for an aspect that can be checked for PDF/X Conformance.
|
static int |
PDFXKEY_FONT
A key for an aspect that can be checked for PDF/X Conformance.
|
static int |
PDFXKEY_GSTATE
A key for an aspect that can be checked for PDF/X Conformance.
|
static int |
PDFXKEY_IMAGE
A key for an aspect that can be checked for PDF/X Conformance.
|
static int |
PDFXKEY_LAYER
A key for an aspect that can be checked for PDF/X Conformance.
|
static int |
PDFXKEY_RGB
A key for an aspect that can be checked for PDF/X Conformance.
|
Constructor and Description |
---|
PdfXConformanceImp() |
Modifier and Type | Method and Description |
---|---|
static void |
checkPDFXConformance(PdfWriter writer,
int key,
Object obj1)
Business logic that checks if a certain object is in conformance with PDF/X.
|
void |
completeExtraCatalog(PdfDictionary extraCatalog) |
void |
completeInfoDictionary(PdfDictionary info) |
int |
getPDFXConformance()
Getter for the PDF/X Conformance value.
|
boolean |
isPdfA1()
Checks if the PDF has to be in conformance with PDFA1
|
boolean |
isPdfA1A()
Checks if the PDF has to be in conformance with PDFA1A
|
boolean |
isPdfX()
Checks if the PDF/X Conformance is necessary.
|
boolean |
isPdfX1A2001()
Checks if the PDF has to be in conformance with PDF/X-1a:2001
|
boolean |
isPdfX32002()
Checks if the PDF has to be in conformance with PDF/X-3:2002
|
void |
setPDFXConformance(int pdfxConformance)
Sets the PDF/X conformance level.
|
public static final int PDFXKEY_COLOR
public static final int PDFXKEY_CMYK
public static final int PDFXKEY_RGB
public static final int PDFXKEY_FONT
public static final int PDFXKEY_IMAGE
public static final int PDFXKEY_GSTATE
public static final int PDFXKEY_LAYER
protected int pdfxConformance
public void setPDFXConformance(int pdfxConformance)
PdfXConformance
setPDFXConformance
in interface PdfXConformance
pdfxConformance
- the conformance levelPdfXConformance.setPDFXConformance(int)
public int getPDFXConformance()
PdfXConformance
getPDFXConformance
in interface PdfXConformance
PdfXConformance.getPDFXConformance()
public boolean isPdfX()
isPdfX
in interface PdfXConformance
public boolean isPdfX1A2001()
public boolean isPdfX32002()
public boolean isPdfA1()
public boolean isPdfA1A()
public void completeInfoDictionary(PdfDictionary info)
public void completeExtraCatalog(PdfDictionary extraCatalog)
public static void checkPDFXConformance(PdfWriter writer, int key, Object obj1)
writer
- the writer that is supposed to write the PDF/X filekey
- the type of PDF/X conformance that has to be checkedobj1
- the object that is checked for conformanceCopyright © 2018. All rights reserved.