PdfPig icon indicating copy to clipboard operation
PdfPig copied to clipboard

Last version reads as first page the last page of document

Open grinay opened this issue 3 years ago • 4 comments

I have one exactly document , which when I start reading
using var pigPdf = PdfDocument.Open(file); foreach (var pigPage in pigPdf.GetPages())

as a first page it read the last page of document. I downgrade version to 0.1.5 and it reads everything correct. I can't provide you that document unfortunately it's under NDA. Would it be possible to check what is the possible reason for that?

grinay avatar Jul 28 '22 10:07 grinay

@EliotJones please review PR. https://github.com/UglyToad/PdfPig/pull/473

grinay avatar Jul 29 '22 10:07 grinay

I have seen almost the same issue in about a dozen documents so far, (incidentally all under copyright protection). Not just the last page being read first, but the general page order being scrambled. Downgrading also fixes the issue.

Hert79 avatar Aug 08 '22 14:08 Hert79

@Hert79 and @grinay does the version containing the fix in PR #473 fix the issue? That should be in this release https://www.nuget.org/packages/PdfPig/0.1.7-alpha-20220814-2f9a9

EliotJones avatar Sep 03 '22 18:09 EliotJones

@Hert79 and @grinay does the version containing the fix in PR #473 fix the issue? That should be in this release https://www.nuget.org/packages/PdfPig/0.1.7-alpha-20220814-2f9a9

For me, the issue is solved. Tested on multiple docs, all fine now.

Hert79 avatar Sep 03 '22 21:09 Hert79