Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.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
寻找使用pymupdf将PDF点转换为page.pixmap()点或从page.pixmap()点转换为PDF点的正确方法_Pdf_Mupdf_Pymupdf - Fatal编程技术网

寻找使用pymupdf将PDF点转换为page.pixmap()点或从page.pixmap()点转换为PDF点的正确方法

寻找使用pymupdf将PDF点转换为page.pixmap()点或从page.pixmap()点转换为PDF点的正确方法,pdf,mupdf,pymupdf,Pdf,Mupdf,Pymupdf,我希望在呈现的页面内将PDF坐标点(x,y)转换为像素点(x,y)。getPixmap(matrix=ScaleM)位图。我在pyMuPDF中没有看到任何实用程序函数允许这种情况发生。是否有人拥有执行此任务的现有翻译功能(如下所示) pixPoint = page.getPixMapPixPoint(fitz.Point(0,0), matrix=ScaleM): pdfPoint = page.getPixMapPdfPoint((pixX, pixY)): 我一直在努力获取page.ro

我希望在呈现的页面内将PDF坐标点(x,y)转换为像素点(x,y)。getPixmap(matrix=ScaleM)位图。我在pyMuPDF中没有看到任何实用程序函数允许这种情况发生。是否有人拥有执行此任务的现有翻译功能(如下所示)

pixPoint = page.getPixMapPixPoint(fitz.Point(0,0), matrix=ScaleM):

pdfPoint = page.getPixMapPdfPoint((pixX, pixY)):
我一直在努力获取page.rotationMatrix、page.translationMatrix、page.CropBox、page.MediaBox等,以便为多个pdf生成器编写正确的翻译函数