如何获取PDF中点的X,Y坐标 [英] How to get the X,Y coordinates of a point in a PDF

查看:2208
本文介绍了如何获取PDF中点的X,Y坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PDF模板文件.它有一堆我需要使用PHP编写的字段.如何轻松确定文件中字段的xy坐标?现在我正在使用xy位置,但是反复试验非常耗时.有一个更好的方法吗?甚至是一种简单的方法来获取pdf文件中某个点的xy坐标?

I have a PDF template file. It has a bunch of fields I need to write to using PHP. How can I easily determine the xy coordinates of a field in the file? Right now I am using xy locations but trial and error is very time consuming. Is there a better way to do this? Or even an easy way to get the xy coordinates of a point in a pdf file?

推荐答案

问题的填写表单部分似乎与两个 问题关于计算文本的X,Y坐标. CAM :: PDF具有 fillformfields.pl 实用程序,它可以帮助.

The form-filling part of your question seems related to this question. As for coords, I can't help with PHP but I have a good Perl solution for this. Here are two questions about computing X,Y coords of text. CAM::PDF has a fillformfields.pl utility that can help.

这篇关于如何获取PDF中点的X,Y坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆