aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}