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.
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.