From 7cc7cd7bee91277df98a8d92a87937e59e6e3496 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 17 Feb 2006 16:41:33 +0000 Subject: [PATCH] Some explanations and warnings. 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 | 1 + src/java/org/apache/fop/pdf/PDFDocument.java | 5 +++++ 2 files changed, 6 insertions(+) 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; } -- 2.39.5