PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

Error: Object with ID 6 0 resolved with negative position

Open waleswood opened this issue 1 year ago • 4 comments

PdfSharpCore 1.3.65

PdfReader.Open(pdfStream, PdfDocumentOpenMode.Modify);

Error: Object with ID 6 0 resolved with negative position

1848259885040422912.pdf

waleswood avatar Nov 15 '24 01:11 waleswood

Gteeting same error while reading attached doc using

100-Fast-Wholesale-Ltd-1.pdf

PdfReader.Open(stream, PdfDocumentOpenMode.ReadOnly);

mustaqt avatar Jan 27 '25 17:01 mustaqt

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);

RobertoFilippini avatar Feb 21 '25 09:02 RobertoFilippini

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.

StasPerekrestov avatar Feb 27 '25 02:02 StasPerekrestov

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

timbussmann avatar Feb 27 '25 11:02 timbussmann