Package com.itextpdf.text.pdf.internal
Class PdfXConformanceImp
java.lang.Object
com.itextpdf.text.pdf.internal.PdfXConformanceImp
- All Implemented Interfaces:
PdfIsoConformance,PdfXConformance
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe value indicating if the PDF has to be in conformance with PDF/X.protected PdfWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPdfIsoConformance(int key, Object obj1) Business logic that checks if a certain object is in conformance with PDF/X.intGetter for the PDF/X Conformance value.booleanisPdfIso()Checks if any PDF ISO conformance is necessary.booleanisPdfX()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
-
pdfxConformance
protected int pdfxConformanceThe value indicating if the PDF has to be in conformance with PDF/X. -
writer
-
-
Constructor Details
-
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:
-
isPdfIso
public boolean isPdfIso()Description copied from interface:PdfIsoConformanceChecks if any PDF ISO conformance is necessary.- Specified by:
isPdfIsoin interfacePdfIsoConformance- Returns:
trueif the PDF has to be in conformance with any of the PDF ISO specifications- 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
-
checkPdfIsoConformance
Business logic that checks if a certain object is in conformance with PDF/X.- Specified by:
checkPdfIsoConformancein interfacePdfIsoConformance- Parameters:
key- the type of PDF ISO conformance that has to be checkedobj1- the object that is checked for conformance
-