public class PDFProfile
extends java.lang.Object
Some profile from PDF/X and PDF/A can be active simultaneously (example: PDF/A-1 and PDF/X-3:2003).
Modifier and Type | Field and Description |
---|---|
protected PDFAMode |
pdfAMode
Indicates the PDF/A mode currently active.
|
protected PDFXMode |
pdfXMode
Indicates the PDF/X mode currently active.
|
Constructor and Description |
---|
PDFProfile(PDFDocument doc)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
PDFDocument |
getDocument() |
PDFAMode |
getPDFAMode() |
PDFXMode |
getPDFXMode() |
boolean |
isAnnotationAllowed() |
boolean |
isFontEmbeddingRequired() |
boolean |
isIDEntryRequired() |
boolean |
isModDateRequired() |
boolean |
isPDFAActive() |
boolean |
isPDFXActive() |
boolean |
isTrappedEntryRequired() |
void |
setPDFAMode(PDFAMode mode)
Sets the PDF/A mode
|
void |
setPDFXMode(PDFXMode mode)
Sets the PDF/X mode
|
java.lang.String |
toString() |
protected void |
validateProfileCombination()
Validates if the requested profile combination is compatible.
|
void |
verifyActionAllowed()
Checks if Actions are allowed.
|
void |
verifyAnnotAllowed()
Checks if annotations are allowed.
|
void |
verifyEncryptionAllowed()
Checks if encryption is allowed.
|
void |
verifyPDFVersion()
Checks if the right PDF version is set.
|
void |
verifyPSXObjectsAllowed()
Checks if PostScript XObjects are allowed.
|
void |
verifyTaggedPDF()
Checks a few things required for tagged PDF.
|
void |
verifyTitleAbsent()
Checks if a title may be absent.
|
void |
verifyTransparencyAllowed(java.lang.String context)
Checks if the use of transparency is allowed.
|
protected PDFAMode pdfAMode
protected PDFXMode pdfXMode
public PDFProfile(PDFDocument doc)
doc
- the PDF documentprotected void validateProfileCombination()
public PDFDocument getDocument()
public PDFAMode getPDFAMode()
public boolean isPDFAActive()
public void setPDFAMode(PDFAMode mode)
mode
- the PDF/A modepublic PDFXMode getPDFXMode()
public boolean isPDFXActive()
public void setPDFXMode(PDFXMode mode)
mode
- the PDF/X modepublic java.lang.String toString()
toString
in class java.lang.Object
public void verifyEncryptionAllowed()
public void verifyPSXObjectsAllowed()
public void verifyTransparencyAllowed(java.lang.String context)
context
- Context information for the user to identify the problem spotpublic void verifyPDFVersion()
public void verifyTaggedPDF()
public boolean isIDEntryRequired()
public boolean isFontEmbeddingRequired()
public void verifyTitleAbsent()
public boolean isModDateRequired()
public boolean isTrappedEntryRequired()
public boolean isAnnotationAllowed()
public void verifyAnnotAllowed()
public void verifyActionAllowed()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.