How to find out number of pages in a PDF file?

7 views (last 30 days)
Kevin
Kevin on 15 Mar 2022
Answered: Richard Quist on 30 Apr 2022
I use the matlab function extractFileText( ) (from the Text Analytics Toolbox) to read PDF file.
But how do I find out number of pages in a PDF file?

Answers (1)

Richard Quist
Richard Quist on 30 Apr 2022
I don't know of anything built into MATLAB that would provide this. It's possible you could write a batch file/shell script to do this for you using an external tool like pdftk, ghostscript, or qpdf.

Categories

Find more on Printing and Saving in Help Center and File Exchange

Tags

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!