Package com.lowagie.text.pdf.internal
Class PdfXConformanceImp
java.lang.Object
com.lowagie.text.pdf.internal.PdfXConformanceImp
- All Implemented Interfaces:
PdfXConformance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe value indicating if the PDF has to be in conformance with PDF/X.static final intA key for an aspect that can be checked for PDF/X Conformance.static final intA key for an aspect that can be checked for PDF/X Conformance.static final intA key for an aspect that can be checked for PDF/X Conformance.static final intA key for an aspect that can be checked for PDF/X Conformance.static final intA key for an aspect that can be checked for PDF/X Conformance.static final intA key for an aspect that can be checked for PDF/X Conformance.static final intA key for an aspect that can be checked for PDF/X Conformance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckPDFXConformance(PdfWriter writer, int key, Object obj1) Business logic that checks if a certain object is in conformance with PDF/X.voidcompleteExtraCatalog(PdfDictionary extraCatalog) voidintGetter for the PDF/X Conformance value.booleanisPdfA1()Checks if the PDF has to be in conformance with PDFA1booleanisPdfA1A()Checks if the PDF has to be in conformance with PDFA1AbooleanisPdfX()Checks if the PDF/X Conformance is necessary.booleanChecks if the PDF has to be in conformance with PDF/X-1a:2001booleanChecks if the PDF has to be in conformance with PDF/X-3:2002voidsetPDFXConformance(int pdfxConformance) Sets the PDF/X conformance level.
-
Field Details
-
PDFXKEY_COLOR
public static final int PDFXKEY_COLORA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
PDFXKEY_CMYK
public static final int PDFXKEY_CMYKA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
PDFXKEY_RGB
public static final int PDFXKEY_RGBA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
PDFXKEY_FONT
public static final int PDFXKEY_FONTA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
PDFXKEY_IMAGE
public static final int PDFXKEY_IMAGEA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
PDFXKEY_GSTATE
public static final int PDFXKEY_GSTATEA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
PDFXKEY_LAYER
public static final int PDFXKEY_LAYERA key for an aspect that can be checked for PDF/X Conformance.- See Also:
-
pdfxConformance
protected int pdfxConformanceThe value indicating if the PDF has to be in conformance with PDF/X.
-
-
Constructor Details
-
PdfXConformanceImp
public PdfXConformanceImp()
-
-
Method Details
-
setPDFXConformance
public void setPDFXConformance(int pdfxConformance) Description copied from interface:PdfXConformanceSets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document.- Specified by:
setPDFXConformancein interfacePdfXConformance- Parameters:
pdfxConformance- the conformance level- See Also:
-
getPDFXConformance
public int getPDFXConformance()Description copied from interface:PdfXConformanceGetter for the PDF/X Conformance value.- Specified by:
getPDFXConformancein interfacePdfXConformance- Returns:
- the pdfxConformance
- See Also:
-
isPdfX
public boolean isPdfX()Checks if the PDF/X Conformance is necessary.- Specified by:
isPdfXin interfacePdfXConformance- Returns:
- true if the PDF has to be in conformance with any of the PDF/X specifications
-
isPdfX1A2001
public boolean isPdfX1A2001()Checks if the PDF has to be in conformance with PDF/X-1a:2001- Returns:
- true of the PDF has to be in conformance with PDF/X-1a:2001
-
isPdfX32002
public boolean isPdfX32002()Checks if the PDF has to be in conformance with PDF/X-3:2002- Returns:
- true of the PDF has to be in conformance with PDF/X-3:2002
-
isPdfA1
public boolean isPdfA1()Checks if the PDF has to be in conformance with PDFA1- Returns:
- true of the PDF has to be in conformance with PDFA1
-
isPdfA1A
public boolean isPdfA1A()Checks if the PDF has to be in conformance with PDFA1A- Returns:
- true of the PDF has to be in conformance with PDFA1A
-
completeInfoDictionary
-
completeExtraCatalog
-
checkPDFXConformance
Business logic that checks if a certain object is in conformance with PDF/X.- Parameters:
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 conformance
-