diff options
author | Jeremias Maerki <jeremias@apache.org> | 2010-10-27 16:03:30 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2010-10-27 16:03:30 +0000 |
commit | 5d507935e659831813565d10b328f45500aa9831 (patch) | |
tree | a60e292690b075febfec46d2ae30f88d2e65aa36 /src | |
parent | a2f1dbe772277b645632ec3f86aa73a0f0bfdac9 (diff) | |
download | xmlgraphics-fop-5d507935e659831813565d10b328f45500aa9831.tar.gz xmlgraphics-fop-5d507935e659831813565d10b328f45500aa9831.zip |
Small improvement for XMP generation.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1028021 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFMetadata.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFMetadata.java b/src/java/org/apache/fop/pdf/PDFMetadata.java index 49f762708..b9612d11b 100644 --- a/src/java/org/apache/fop/pdf/PDFMetadata.java +++ b/src/java/org/apache/fop/pdf/PDFMetadata.java @@ -151,6 +151,9 @@ public class PDFMetadata extends PDFStream { } dc.addDate(info.getCreationDate()); + //Somewhat redundant but some PDF/A checkers issue a warning without this. + dc.setFormat("application/pdf"); + //PDF/A identification PDFAMode pdfaMode = pdfDoc.getProfile().getPDFAMode(); if (pdfaMode.isPDFA1LevelB()) { |