Communication-Systems-Group / pdfsign.js

96 stars 26 forks source link

Signing doesn't work for PDFs that use xref stream instead of xref table #7

Open nradosevic opened 4 years ago

nradosevic commented 4 years ago

When trying to sign a PDF that uses an xref stream instead of table, you get an invalid PDF because the code is always creating xref table in the end, and xref stream value are meaningless in the xref table. And also, it fails to add signature annotation when the pages object is inside an object stream.