|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFProfile
public class PDFProfile
This class allows tracks the enabled PDF profiles (PDF/A and PDF/X) and provides methods to the libarary and its users to enable the generation of PDFs conforming to the enabled PDF profiles.
Some profile from PDF/X and PDF/A can be active simultaneously (example: PDF/A-1 and PDF/X-3:2003).
Field Summary | |
---|---|
protected PDFAMode |
pdfAMode
Indicates the PDF/A mode currently active. |
protected PDFUAMode |
pdfUAMode
|
protected PDFVTMode |
pdfVTMode
|
protected PDFXMode |
pdfXMode
Indicates the PDF/X mode currently active. |
Constructor Summary | |
---|---|
PDFProfile(PDFDocument doc)
Main constructor |
Method Summary | |
---|---|
PDFDocument |
getDocument()
|
PDFAMode |
getPDFAMode()
|
PDFUAMode |
getPDFUAMode()
|
PDFVTMode |
getPDFVTMode()
|
PDFXMode |
getPDFXMode()
|
boolean |
isAnnotationAllowed()
|
boolean |
isFontEmbeddingRequired()
|
boolean |
isIDEntryRequired()
|
boolean |
isModDateRequired()
|
boolean |
isPDFAActive()
|
boolean |
isPDFVTActive()
|
boolean |
isPDFXActive()
|
java.lang.Object |
isTransparencyAllowed()
Returns null if transparency is allowed, otherwise returns the profile that
prevents it. |
boolean |
isTrappedEntryRequired()
|
void |
setPDFAMode(PDFAMode mode)
Sets the PDF/A mode |
void |
setPDFUAMode(PDFUAMode mode)
|
void |
setPDFVTMode(PDFVTMode mode)
Sets the PDF/X 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 |
verifyEmbeddedFilesAllowed()
Checks if embedded files 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected PDFAMode pdfAMode
protected PDFUAMode pdfUAMode
protected PDFXMode pdfXMode
protected PDFVTMode pdfVTMode
Constructor Detail |
---|
public PDFProfile(PDFDocument doc)
doc
- the PDF documentMethod Detail |
---|
protected void validateProfileCombination()
public PDFDocument getDocument()
public PDFAMode getPDFAMode()
public PDFUAMode getPDFUAMode()
public boolean isPDFAActive()
public void setPDFAMode(PDFAMode mode)
mode
- the PDF/A modepublic void setPDFUAMode(PDFUAMode mode)
public PDFXMode getPDFXMode()
public PDFVTMode getPDFVTMode()
public boolean isPDFXActive()
public boolean isPDFVTActive()
public void setPDFXMode(PDFXMode mode)
mode
- the PDF/X modepublic void setPDFVTMode(PDFVTMode 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 java.lang.Object isTransparencyAllowed()
null
if transparency is allowed, otherwise returns the profile that
prevents it.
null
, or an object whose toString
method returns the name
of the profile that disallows transparencypublic 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()
public void verifyEmbeddedFilesAllowed()
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |