Get the layout mode (landscape or portrait) of a pdf from php/linux
Posted
by Jonathan Hendler
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan Hendler
Published on 2009-09-23T17:31:35Z
Indexed on
2010/06/05
18:22 UTC
Read the original article
Hit count: 166
Given a PDF, how can one get the layout mode of a PDF (or relative width/height) using a PHP lib or linux command line tool?
Using http://www.tecnick.com/public/code/cp%5Fdpage.php?aiocp%5Fdp=tcpdf which can set this variable on new PDFs, but for existing pdfs from adobe.
Thought of converting pdfs to ps, or using gs in some other way - like converting it to an image first, and getting the width and height of that. Is this the best way?
© Stack Overflow or respective owner