aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/pdf/PDFMetadata.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFMetadata.java b/src/java/org/apache/fop/pdf/PDFMetadata.java
index 5a4d20d5d..e767cbf1b 100644
--- a/src/java/org/apache/fop/pdf/PDFMetadata.java
+++ b/src/java/org/apache/fop/pdf/PDFMetadata.java
@@ -234,7 +234,9 @@ public class PDFMetadata extends PDFStream {
//than Info/CreationDate
info.setCreationDate(d);
d = xmpBasic.getModifyDate();
- xmpBasic.setModifyDate(d);
- info.setModDate(d);
+ if (d != null) { //ModifyDate is only required for PDF/X
+ xmpBasic.setModifyDate(d);
+ info.setModDate(d);
+ }
}
}