Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/423.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将图像像素坐标转换为PDF坐标_Javascript_Jquery_Pdf_Coordinates - Fatal编程技术网

Javascript 如何将图像像素坐标转换为PDF坐标

Javascript 如何将图像像素坐标转换为PDF坐标,javascript,jquery,pdf,coordinates,Javascript,Jquery,Pdf,Coordinates,使用jQuery可拖动库设置图像上的坐标,使用pdf库设置pdf上的坐标 以下是在拖放过程中设置的一些坐标 Image (Width * Height) => 825px * 1074px After draggable item (Width * Height) => 209px * 66px Coordinate Poistion = (x,y) => 491px*519px New PDF size = (width * height) = 609 x 791 pts

使用jQuery可拖动库设置图像上的坐标,使用pdf库设置pdf上的坐标

以下是在拖放过程中设置的一些坐标

Image (Width * Height)  => 825px * 1074px
After draggable item (Width * Height)  => 209px * 66px
Coordinate Poistion = (x,y) => 491px*519px
New PDF size = (width * height) = 609 x 791 pts
使用1px=0.75pts将像素转换为点 根据新的宽度和高度得到新的坐标


我不知道我的代码,因为签名点不在正确的位置。需要帮助

您能给我们看一下您的代码吗?您是在使用元素功能吗?不使用getBoundingReact()使用DragTable的ui.helper[0]