Do you have a product that will give me the number of pages in a PDF file using C#?

Do you have a product that will give me the number of pages in a PDF file using C#?

Customer
--------------------------------------------
Thanks for your message, we have lots of software which can get the page count from PDF file, please look at following web page for more information,

http://www.verypdf.com/wordpress/201307/how-to-count-pages-in-pdf-file-determine-number-of-pages-in-a-pdf-file-37621.html

http://www.verypdf.com/wordpress/201205/how-to-count-the-number-of-pdf-pages-in-a-folder-27465.html

You can use C# source code to call Advanced PDF Tools Command Line or PDF Split-Merge Command Line or PDF Toolbox Command Line to get the number of PDF file easily, if you can't get it work, please feel free to let us know, we will ask our engineer to create a C# example project for you asap.

Additional Information:

星星 Product #1. You can use PDF Split-Merge Command Line to read the page count from a PDF file, you may download and install PDF Split-Merge Command Line from following URL,

http://www.verypdf.com/pdfpg/pdfpg.exe
http://www.verypdf.com/app/pdf-split-merge/try-and-buy.html

after you installed it, you can run or call following command line to get the page count from a PDF file,

"C:\Program Files (x86)\VeryPDF PDF Split-Merge v3.0\pdfpg.exe" getpagecount D:\downloads\test.pdf

You will get following message with above command line,
-----------------------------
There are 13 pages in D:\downloads\test.pdf
Please purchase PDF Split-Merge on www.verypdf.com to remove this message.
-----------------------------

星星 Product #2. You can use Advanced PDF Tools Command Line product to get the page count from a PDF file,

http://www.verypdf.com/app/advanced-pdf-tools/try-and-buy.html
http://www.verypdf.com/pdfinfoeditor/advanced_pdf_tools_cmd.zip

after you download and unzip it to a folder, you can run following command line to get the page count from a PDF file,

pdftools.exe -r –i D:\help.pdf | findstr /C:"File Pages Count:"

pdftools.exe is not only get page count from a PDF file, but also get the metadata, paper size, document summaries, page layout, etc. information from a PDF file.

星星 Product #3. Use PDF Toolbox Command Line to get the number of PDF file,

http://www.verypdf.com/app/pdftoolbox/try-and-buy.html
http://www.verypdf.com/dl.php?file=pdftoolbox_cmd_win.zip

pdftoolbox.exe D:\test.pdf -getinfo -outfile "D:\_getinfo_out.txt"
findstr /C:NumberOfPages D:\_getinfo_out.txt

NumberOfPages: 2

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in Advanced PDF Tools and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!