-
Notifications
You must be signed in to change notification settings - Fork 135
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
Comments
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. |
Sorry here is the full template Use the PDFsharp-gdi solution |
Please note that this is not a "simple PDF". When opened with Google Chrome, there is only a single page. That's the only regular page in the PDF and that's the page that PDFsharp also finds. |
Thanks to take time to answer. Thanks |
AIUI Adobe Reader creates the 14 pages "on the fly" from meta data included in the PDF and Firefox creates 24 pages from the same meta data. PDFsharp does not have the capabilities to render those pages "on the fly". I did not check if you can easily access the meta data using PDFsharp. |
Yesterday , I've tested with the adobe API and it found only 1 page too. |
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
The text was updated successfully, but these errors were encountered: