Skip to content
Advertisement

Get properties of a pdf file by using PHP

I have on pdf document. I want to print the details of pdf like page size by using php.

I have this code

JavaScript

This is my code can any one help regarding this.

Thanks in advance

Advertisement

Answer

First check your pdfinfo‘s path, if you don’t have it: XPDF… so then change your code:

JavaScript

If you use Linux: $pdfinfo_path = "/path/to/pdfinfo";

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement