]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Some explanations and warnings.
authorJeremias Maerki <jeremias@apache.org>
Fri, 17 Feb 2006 16:41:33 +0000 (16:41 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 17 Feb 2006 16:41:33 +0000 (16:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378564 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/pdf/PDFAMode.java
src/java/org/apache/fop/pdf/PDFDocument.java

index 52e1f02f5459b6fe976c5f57f5d1379447d24469..e78eaf72ba4812d066b8c23f49e5b7d4f8e7916a 100644 (file)
@@ -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!
     }
     
     /**
index 916f19ca8cf87e8931cc2ab7630a1e65558b43a9..779e7ff26fce92c6922d6940fe8e6de1d6a28f6c 100644 (file)
@@ -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;
     }