[PDF] incorrect timestamp calculation when writing PDF metadata
This issue is addressed by Mercurial changeset 18190:3273551fd0f7 "coders/pdf.c (WritePDFImage): Use strftime() to format PDF dates, including the time zone offset from UTC." and the code will appear in today's development snapshot build. Thank you very much for reporting the issue!
Google AI says: The preferred and most complete form for a PDF CreationDate (and other PDF date fields) is the local time accompanied by its time zone offset from UTC. The formal PDF specification (ISO 32000-1) defines the syntax as follows: D:YYYYMMDDHHmmSSOHH'mm' Where: • D: is the required prefix. • YYYYMMDDHHmmSS represents the local year, month, day, hour, minute, and second. • O is the relationship indicator to Universal Time (UTC), which can be +, -, or Z. • HH'mm' is the absolute value of...
[PDF] incorrect timestamp calculation when writing PDF metadata
To summarize, what you are seeing is produced/invented by recent pdfinfo. Add the -rawdates option to see the actual data from the file.
I have replicated your issue. If one opens the PDF and looks at its text, one can see that the CreationDate and ModDate are similar to "D:20261012133504" and the time zone is not specified. Use 'pdfinfo -rawdates output.pdf' to see the unmodified dates. It seems that pdfinfo (I have 26.01.0) is assuming that unmarked dates are UTC and is converting to the local time zone. This is in spite of Google's AI overview saying that pdfinfo uses raw date information (no time zone information) literally. Google...
A kind GraphicsMagick user did donate a used corporate laptop (which was likely at the end of its business life, but seemed to be in brand new condition), and had a fresh install of Windows 11 on it. This means that I am able to develop and test with Windows 11 now. I am not without means, but I have looked for a way to set up donations. For example "Buy Me A Coffee". Unfortunately, they all seem to have some sort of tie to performing activities on their web site. What is most useful for the project...
GraphicsMagick 1.3.49 is now available