[Poppler-bugs] [Bug 99416] Sign PDF with digital signature

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 15 14:53:55 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99416

--- Comment #50 from Hans-Ulrich Jüttner <huj at froreich-bioscientia.de> ---
(In reply to Adrian Johnson from comment #49)
> (In reply to Hans-Ulrich Jüttner from comment #48)
> > I think that re-reading a document which just has been written with poppler
> > and writing it again whithout changes should produce an identical document.
> 
> Should does not mean it always will. It introduces a constraint on poppler
> that prevents any future changes that alter that assumption.
> 
> I still have not seen a good explanation for why the you think the signing
> should work this way.

We simply have different ideas about the in memory representation of a PDF
file.
In my opinion the bytes on disk should be reproducible from the in memory
representation whenever possible. Especially when dealing with signatures
this is desirably. If some time in the future one wants to support multiple
signatures on PDF documents with the second signature after the ByteRange
of the first one, then the first signature should not be invalidated by
writing the document with the second signature.

In your opinion the bytes on disk need not be reproducible from the in memory
representation.

> 
> > But with the multiple spaces in the ByteRange on disk this would not be the
> > case. Moreover, multiple spaces separating objects in PFD files are not
> > allowed by more restrictive standards like PDF/A.
> 
> Then we can use '0's. But in any case we don't support PDF/A.

Leading '0's on the numbers in ByteRange would be even worse. These numbers
then probably would be mistakenly read as 0 by at least some PDF software.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170915/dc7e517e/attachment.html>


More information about the Poppler-bugs mailing list