Author: ssteiner
Date: Tue Aug 11 14:43:08 2015
New Revision: 1695313

URL: http://svn.apache.org/r1695313
Log:
FOP-2509: Add support for PDF/A-3

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

Modified: xmlgraphics/fop/trunk/lib/xmlgraphics-commons-svn-trunk.jar
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/lib/xmlgraphics-commons-svn-trunk.jar?rev=1695313&r1=1695312&r2=1695313&view=diff
==============================================================================
Binary files - no diff available.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFAMode.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFAMode.java?rev=1695313&r1=1695312&r2=1695313&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFAMode.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFAMode.java Tue Aug 11 
14:43:08 2015
@@ -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;
 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFMetadata.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFMetadata.java?rev=1695313&r1=1695312&r2=1695313&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFMetadata.java 
(original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFMetadata.java Tue Aug 
11 14:43:08 2015
@@ -144,6 +144,9 @@ public class PDFMetadata extends PDFStre
 
         //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 PDFStre
             pdfua.setPart(pdfuaMode.getPart());
         }
 
-        //PDF/A identification
-        PDFAMode pdfaMode = pdfDoc.getProfile().getPDFAMode();
         if (pdfaMode.isEnabled()) {
             PDFAAdapter pdfa = PDFAXMPSchema.getAdapter(meta);
             pdfa.setPart(pdfaMode.getPart());



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-h...@xmlgraphics.apache.org

Reply via email to