简体   繁体   English

PDF获取PDF尺寸

[英]PDF get PDF dimensions

I am working in PHP and want to get the dimensions of a pdf document so that I can find the orientation and append it to another PDF that is generated on the fly using mpdf. 我正在PHP中工作,想要获取pdf文档的尺寸,以便我可以找到方向并将其附加到使用mpdf即时生成的另一个PDF中。 Thanks in advance for any help. 在此先感谢您的帮助。

Have you tryed Dompdf or the Zend extension? 您是否尝试过Dompdf或Zend扩展? They come with a whole lot of features - they might help you finding the dimensions. 它们具有很多功能-它们可能会帮助您找到尺寸。

dompdf: https://github.com/dompdf/dompdf Zend PDF: http://framework.zend.com/manual/1.12/en/zend.pdf.html dompdf: https : //github.com/dompdf/dompdf Zend PDF: http : //framework.zend.com/manual/1.12/en/zend.pdf.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM