PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon May 06, 2024 3:45 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Apr 22, 2010 2:48 pm 
Offline

Joined: Wed Apr 21, 2010 7:44 pm
Posts: 4
Is there a sample code or a documentation some where that I can read or use to get a quick page count from PDF file?

Thanks in advance.

_________________
http://ongetc.com


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 26, 2010 7:47 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
Open the PDF document with PDFsharp (PdfReader.Open) and query "Pages.Count" from the document.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 26, 2010 12:24 pm 
Offline

Joined: Wed Apr 21, 2010 7:44 pm
Posts: 4
From what you said it sounds so simple but yet I can't find that information the available document or API.

Thanks

_________________
http://ongetc.com


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 26, 2010 1:14 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
http://www.pdfsharp.net/wiki/Concatenat ... =pdfreader

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 26, 2010 3:02 pm 
Offline

Joined: Wed Apr 21, 2010 7:44 pm
Posts: 4
Very nice! Thanks

_________________
http://ongetc.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 74 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group