Package com.itextpdf.text.pdf.internal
Class PdfXConformanceImp
- java.lang.Object
-
- com.itextpdf.text.pdf.internal.PdfXConformanceImp
-
- All Implemented Interfaces:
PdfIsoConformance
,PdfXConformance
public class PdfXConformanceImp extends java.lang.Object implements PdfXConformance
-
-
Field Summary
Fields Modifier and Type Field Description protected int
pdfxConformance
The value indicating if the PDF has to be in conformance with PDF/X.protected PdfWriter
writer
-
Constructor Summary
Constructors Constructor Description PdfXConformanceImp(PdfWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPdfIsoConformance(int key, java.lang.Object obj1)
Business logic that checks if a certain object is in conformance with PDF/X.int
getPDFXConformance()
Getter for the PDF/X Conformance value.boolean
isPdfIso()
Checks if any PDF ISO conformance is necessary.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:2001boolean
isPdfX32002()
Checks if the PDF has to be in conformance with PDF/X-3:2002void
setPDFXConformance(int pdfxConformance)
Sets the PDF/X conformance level.
-
-
-
Field Detail
-
pdfxConformance
protected int pdfxConformance
The value indicating if the PDF has to be in conformance with PDF/X.
-
writer
protected PdfWriter writer
-
-
Constructor Detail
-
PdfXConformanceImp
public PdfXConformanceImp(PdfWriter writer)
-
-
Method Detail
-
setPDFXConformance
public void setPDFXConformance(int pdfxConformance)
Description copied from interface:PdfXConformance
Sets the PDF/X conformance level. Allowed values are PDFX1A2001, PDFX32002, PDFA1A and PDFA1B. It must be called before opening the document.- Specified by:
setPDFXConformance
in interfacePdfXConformance
- Parameters:
pdfxConformance
- the conformance level- See Also:
PdfXConformance.setPDFXConformance(int)
-
getPDFXConformance
public int getPDFXConformance()
Description copied from interface:PdfXConformance
Getter for the PDF/X Conformance value.- Specified by:
getPDFXConformance
in interfacePdfXConformance
- Returns:
- the pdfxConformance
- See Also:
PdfXConformance.getPDFXConformance()
-
isPdfIso
public boolean isPdfIso()
Description copied from interface:PdfIsoConformance
Checks if any PDF ISO conformance is necessary.- Specified by:
isPdfIso
in interfacePdfIsoConformance
- Returns:
true
if the PDF has to be in conformance with any of the PDF ISO specifications- See Also:
PdfIsoConformance.isPdfIso()
-
isPdfX
public boolean isPdfX()
Checks if the PDF/X Conformance is necessary.- Specified by:
isPdfX
in 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
-
checkPdfIsoConformance
public void checkPdfIsoConformance(int key, java.lang.Object obj1)
Business logic that checks if a certain object is in conformance with PDF/X.- Specified by:
checkPdfIsoConformance
in interfacePdfIsoConformance
- Parameters:
key
- the type of PDF ISO conformance that has to be checkedobj1
- the object that is checked for conformance
-
-