Forums before death by AOL, social media and spammers... "We can't have nice things"
|    linux.debian.bugs.dist    |    Ohh some weird Debian bug report thing    |    28,835 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 28,202 of 28,835    |
|    Albert Nash to All    |
|    Bug#1128417: pdftk-java writes dates in     |
|    19 Feb 26 15:30:01    |
      From: AlbertNash0@ro.ru              Package: pdftk-java       Version: 3.3.3-2       Control: affects -1 exiftool              When updating the Info-dictionary date fields, pdftk-java encodes the date       string in UTF-16BE with BOM instead of ASCII (or PDFDocEncoding). This causes       an interoperability issue with exiftool, which does not normalize the dates       into a human-readable        form.              Grab a sample PDF file, say, https://pdfobject.com/pdf/sample.pdf, and try to       update the creation date there with either update_info or update_info_utf8       (for our purposes, pick any):              $ pdftk sample.pdf update_info <(echo -e "InfoBegin\nInfoKey: Cr       ationDate\nInfoValue: D:199812231952-08'00'") output sample_with_date.pdf              Exiftool shows what's there, but the creation date is not in a human-readable       form, whereas the original modification date is way more readable:              $ exiftool -a -G sample_with_date.pdf | grep "PDF.*Date"       [PDF] Modify Date : 2008:07:01 05:24:47Z       [PDF] Create Date : D:199812231952-08'00'              The culprit is the encoding of the date in UTF-16BE, starting with the       byte-order mark FE FF:              $ mutool show sample_with_date.pdf trailer/Info | grep Date        /ModDate (D:20080701052447Z00'00')        /CreationDate |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca