Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reading PDF #682

Closed
nycjpm opened this issue Aug 15, 2023 · 0 comments · Fixed by #691
Closed

Error reading PDF #682

nycjpm opened this issue Aug 15, 2023 · 0 comments · Fixed by #691

Comments

@nycjpm
Copy link

nycjpm commented Aug 15, 2023

This PDF when saved to a file (and many more I can provide if needed) returns null for pages, even though it is readable in Acrobat and Firefox and Chrome.

https://www.nflgsis.com/2013/post/02/56162/Gamebook.pdf

Many other PDF's from the same site are readable. Everything newer than 2013 for example: https://www.nflgsis.com/2018/reg/02/57587/Gamebook.pdf

snippet that fails....

        using (PdfDocument pdf = PdfDocument.Open(gamebookName))
        {
            var pdfpages = pdf.GetPages();

            var pages = new List<List<string>>();
            foreach (Page page in pdfpages)   <== NULL PAGES object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant