PdfPig
PdfPig copied to clipboard
Last version reads as first page the last page of document
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?
@EliotJones please review PR. https://github.com/UglyToad/PdfPig/pull/473
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 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
@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.