Is it possible to get info of PDF file in MATLAB?

13 views (last 30 days)
Hi everyone,
Just wondering if it is possible for MATLAB to read a PDF file and return some information (eg. number of pages, page size, etc)?
I am open to the idea of buying extra toolbox from MathWorks. Or buying some software from another company (eg. Adobe or other companies) and call it from MATLAB.
Any idea is welcome.

Accepted Answer

Jan on 16 Mar 2017
I'd give cpdf a try. It is now available for free.
  1 Comment
Kevin on 16 Mar 2017
Edited: Kevin on 16 Mar 2017
Very nice tool indeed. It is a bit pricey ($400) for commercial use. But you get what you pay for.
Second thought. I wish CPDF will return textual content of a page (and its corresponding font, font size, ...).
Thank you very much.

Sign in to comment.

More Answers (1)

KSSV on 16 Mar 2017
  1 Comment
Kevin on 16 Mar 2017
Great. I check it out.
I can get the number of pages by this command,
>> pdfdoc.getNumberOfPages
However, I still don't know how to get page size.

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!