From: Jeremias Maerki Date: Fri, 17 Feb 2006 16:41:33 +0000 (+0000) Subject: Some explanations and warnings. X-Git-Tag: fop-0_92-beta~113 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7cc7cd7bee91277df98a8d92a87937e59e6e3496;p=xmlgraphics-fop.git Some explanations and warnings. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378564 13f79535-47bb-0310-9956-ffa450edef68 --- 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; }