PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

wrong page number with pdfsharp
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4615
Page 1 of 1

Author:  ffbboy30 [ Fri Jun 28, 2024 11:23 am ]
Post subject:  wrong page number with pdfsharp

Hello,
I've a lot of pdf and I need to counter the number of pages of all.
In many case the number of page is good , but sometime I got 1 even if the pdf file have many page.
Here is the code I use to get the number of page
Code:
var pdfDocument = PdfReader.Open(file);
Uint16 NbPage = pdfDocument.Pages.Count;

Is there another solution to get the number of page ?

The file is too big to attach it, I can send it by MP if you need it.

Thanks for your help

Author:  TH-Soft [ Fri Jun 28, 2024 11:25 am ]
Post subject:  Re: wrong page number with pdfsharp

I hope you are using PDFsharp 6.1.0.

ffbboy30 wrote:
The file is too big to attach it, I can send it by MP if you need it.
See also:
https://docs.pdfsharp.net/General/Issue-Reporting.html

Author:  ffbboy30 [ Fri Jun 28, 2024 11:48 am ]
Post subject:  Re: wrong page number with pdfsharp

If someone have the same problem.
Here is the link to the issue.
Maybe a solution :D

https://github.com/empira/PDFsharp/issues/129

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/