Error: Object with ID 6 0 resolved with negative position
PdfSharpCore 1.3.65
PdfReader.Open(pdfStream, PdfDocumentOpenMode.Modify);
Error: Object with ID 6 0 resolved with negative position
Gteeting same error while reading attached doc using
PdfReader.Open(stream, PdfDocumentOpenMode.ReadOnly);
I'm getting the same error with a sensitive pdf that i cannot share.
var Src = new MemoryStream(Pdf); var SourcePdf = PdfReader.Open(Src, PdfDocumentOpenMode.Modify);
The issue relates to compressed object processing. If you pre-process a pdf file with qpdf --qdf --object-streams=disable ./100-Fast-Wholesale-Ltd-1.pdf ./test.pdf the resulting pdf doesn't cause the issue anymore.
We ran into the same exception, changing the PdfReadAccuracy level avoids the exception but doesn't provide any results PdfReader.Open(stream, PdfDocumentOpenMode.Import, PdfReadAccuracy.Moderate).