aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-02-17 16:41:33 +0000
committerJeremias Maerki <jeremias@apache.org>2006-02-17 16:41:33 +0000
commit7cc7cd7bee91277df98a8d92a87937e59e6e3496 (patch)
tree62657b1cf8be1b987d94101c1613335a5abe3351 /src/java
parent65b653d39e8018de7510a78e39d0ef8de3a40ab5 (diff)
downloadxmlgraphics-fop-7cc7cd7bee91277df98a8d92a87937e59e6e3496.tar.gz
xmlgraphics-fop-7cc7cd7bee91277df98a8d92a87937e59e6e3496.zip
Some explanations and warnings.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378564 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFAMode.java1
-rw-r--r--src/java/org/apache/fop/pdf/PDFDocument.java5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFAMode.java b/src/java/org/apache/fop/pdf/PDFAMode.java
index 52e1f02f5..e78eaf72b 100644
--- a/src/java/org/apache/fop/pdf/PDFAMode.java
+++ b/src/java/org/apache/fop/pdf/PDFAMode.java
@@ -46,6 +46,7 @@ public final class PDFAMode {
/** @return true if this mode obey the restrictions established by PDF/A-1b. */
public boolean isPDFA1LevelB() {
return (this != DISABLED);
+ //PDF/A-1a is a superset of PDF/A-1b!
}
/**
diff --git a/src/java/org/apache/fop/pdf/PDFDocument.java b/src/java/org/apache/fop/pdf/PDFDocument.java
index 916f19ca8..779e7ff26 100644
--- a/src/java/org/apache/fop/pdf/PDFDocument.java
+++ b/src/java/org/apache/fop/pdf/PDFDocument.java
@@ -278,6 +278,11 @@ public class PDFDocument {
if (mode == null) {
throw new NullPointerException("mode must not be null");
}
+ if (mode == PDFAMode.PDFA_1A) {
+ throw new UnsupportedOperationException("PDF/A-1a is not implemented, yet");
+ } else if (mode == PDFAMode.PDFA_1B) {
+ log.warn("Please note: PDF/A-1b is 'WORK IN PROGRESS' and not fully supported, yet!");
+ }
this.pdfAMode = mode;
}