]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2509: Add support for PDF/A-3
authorSimon Steiner <ssteiner@apache.org>
Tue, 11 Aug 2015 14:43:08 +0000 (14:43 +0000)
committerSimon Steiner <ssteiner@apache.org>
Tue, 11 Aug 2015 14:43:08 +0000 (14:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1695313 13f79535-47bb-0310-9956-ffa450edef68

lib/xmlgraphics-commons-svn-trunk.jar
src/java/org/apache/fop/pdf/PDFAMode.java
src/java/org/apache/fop/pdf/PDFMetadata.java

index 551295eb2695b1b1bb7434ab4fb3124763699b9f..82ca2a684ddef0a50bcad296adf97b0818707116 100644 (file)
Binary files a/lib/xmlgraphics-commons-svn-trunk.jar and b/lib/xmlgraphics-commons-svn-trunk.jar differ
index ab0acd35fe26bfea10c8559afccef36c76ad7171..507b392ed4a9d92fdfb3e7607de0c2c029d4d3dc 100644 (file)
@@ -33,7 +33,11 @@ public enum PDFAMode {
     /** PDF/A-2b enabled. */
     PDFA_2B(2, 'B'),
     /** PDF/A-2u enabled. */
-    PDFA_2U(2, 'U');
+    PDFA_2U(2, 'U'),
+
+    PDFA_3A(3, 'A'),
+    PDFA_3B(3, 'B'),
+    PDFA_3U(3, 'U');
 
     private final String name;
 
index 58b164c8dac24b7f135f9c9e07e59f36f6560cf2..3af9af6067b9d271f6213428f9ccc272d3167340 100644 (file)
@@ -144,6 +144,9 @@ public class PDFMetadata extends PDFStream {
 
         //Dublin Core
         DublinCoreAdapter dc = DublinCoreSchema.getAdapter(meta);
+        //PDF/A identification
+        PDFAMode pdfaMode = pdfDoc.getProfile().getPDFAMode();
+        dc.setCompact(pdfaMode.getPart() != 3);
         if (info.getAuthor() != null) {
             dc.addCreator(info.getAuthor());
         }
@@ -169,8 +172,6 @@ public class PDFMetadata extends PDFStream {
             pdfua.setPart(pdfuaMode.getPart());
         }
 
-        //PDF/A identification
-        PDFAMode pdfaMode = pdfDoc.getProfile().getPDFAMode();
         if (pdfaMode.isEnabled()) {
             PDFAAdapter pdfa = PDFAXMPSchema.getAdapter(meta);
             pdfa.setPart(pdfaMode.getPart());