Import PDF and get Width and Height

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pranaysharmadelhi
Forum Newbie
Posts: 1
Joined: Tue Nov 18, 2008 3:00 pm

Import PDF and get Width and Height

Post by pranaysharmadelhi »

Hi,
I am working on a project which requires the following:
User uploads a pdf file(through basic php form)
pdf is stored temporarily and the Width/Height of the pdf is checked against a matrix in database and a price is calculated and the user is sent to shopping cart for printing.
I have tried fpdi with FPDF and TCPDF but both of them require me to enter a value for a new PDF and then import an existing PDF. :banghead:
I am having hard time finding out how to find out widht/height of the imported pdf and also how many pages exists.
Any help would be greatly appreciated.

Thanks!
Post Reply