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

Wrong page number when reading a simple pdf #129

Open
ffbboy30 opened this issue Jun 28, 2024 · 2 comments
Open

Wrong page number when reading a simple pdf #129

ffbboy30 opened this issue Jun 28, 2024 · 2 comments
Labels
bug Something isn't working investigation Under investigation

Comments

@ffbboy30
Copy link

Hello,
PDFsharp-gdi.zip

The problem is simple the nNbpages is 1 instead of 14

Here is my code from the issue template
The code is quite simple
var pdfDocument = PdfReader.Open("CE EMR 8029635 - TCE-121190056.pdf"); int NbPages = pdfDocument.Pages.Count; Console.WriteLine(NbPages.ToString());

I put the pdf file in the debug directory

Thanks for your help

@ThomasHoevel
Copy link
Member

It would have been much easier if you would have used the template as intended. You sent a ZIP file without code and without .SLN file.

PDFsharp only find 1 page. Further investigation pending.

@ThomasHoevel ThomasHoevel added bug Something isn't working investigation Under investigation labels Jul 1, 2024
@ffbboy30
Copy link
Author

ffbboy30 commented Jul 1, 2024

Sorry here is the full template
Full template.zip

Use the PDFsharp-gdi solution
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation Under investigation
Projects
None yet
Development

No branches or pull requests

2 participants