We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655ac8b commit 0d3f0f9Copy full SHA for 0d3f0f9
fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java
@@ -134,7 +134,9 @@ public static Metadata createXMPFromPDFDocument(PDFDocument pdfDoc) {
134
135
//Set creation date if not available, yet
136
if (info.getCreationDate() == null) {
137
- Date d = new Date();
+ Date d = System.getenv("SOURCE_DATE_EPOCH") == null ?
138
+ new Date() :
139
+ new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
140
info.setCreationDate(d);
141
}
142
0 commit comments