[Poppler-bugs] [Bug 99416] Sign PDF with digital signature
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 29 07:28:37 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=99416
--- Comment #21 from Hans-Ulrich Jüttner <huj at froreich-bioscientia.de> ---
(In reply to Adrian Johnson from comment #15)
> + char buf[24];
> + time_t now = time(nullptr);
> + size_t size = strftime(buf, 24, "D:%Y%m%d%H%M%S%z", localtime(&now));
> + if (size >= 2 && size < 22)
> + {
> + // put timezone info into single quotes
> + buf[size] = buf[size-1];
> + buf[size-1] = buf[size-2];
> + buf[size-2] = '\'';
> + buf[++size] = '\'';
> + buf[++size] = '\0';
> + GooString gTime(buf, size);
> + vObj.dictAdd(copyString("M"), Object(gTime.copy()));
> + }
>
> PDF date format uses a single quote to separate the time zone hour and
> minute, not enclose the minutes. strftime "%z" on windows returns the
> timezone name, not the offset.
>
http://www.verypdf.com/pdfinfoeditor/pdf-date-format.htm says that the minutes
of the time zone in PDF date format are also followed by a single quote.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170829/f6cfc89a/attachment.html>
More information about the Poppler-bugs
mailing list