Replies: 7 comments
-
We can only accept a bug report complete with an example file. I also noticed that you do not use the current version. |
Beta Was this translation helpful? Give feedback.
-
hi ,how to remove all CTM from the pdf page ? i saw some "cm" instruction left in existing page : (0.24,0,0,-0.24,0,840) and when i darw_rect it will mulitple that ctm with input rect. |
Beta Was this translation helpful? Give feedback.
-
This consideration will not resolve your problem. Please repeat using the current PyMuPDF version 1.24.3. |
Beta Was this translation helpful? Give feedback.
-
i am using 1.24.4 to reproduce this . from below code seems it depends the start point and a matrix , how to decide them ? in shape.finish there is :
|
Beta Was this translation helpful? Give feedback.
-
First of all, this seems to be no bug report any longer. |
Beta Was this translation helpful? Give feedback.
-
The morph parameter executes a matrix ... any matrix with So you must first answer the question what the fixpoint should be. Then it looks like you want to scale, so use |
Beta Was this translation helpful? Give feedback.
-
thanks , sorry , the issue suddenly disappear...my bad ..even i dont know where i bad it ..i tried two days ..thanks |
Beta Was this translation helpful? Give feedback.
-
Description of the bug
draw_rect behave different on existing page and new page
How to reproduce the bug
i have an existing pdf file and when i use draw_rect to draw on one of its page , eg , (100,100,600,600) , but it scaled to (20,20,200,200) , the rectangle is very small . even i set the width to more like 3000, it only can occupy 1/4 area of the whole page on left-top area .
but when create a new page , and draw on it , it works fine .
my question is , is there some possible reason that make draw_rect such behavior . actually not only draw_rect ,but also insert_text also this behavior . and i compared the new page and existing page , the transformation and other matrix are all same . i think the existing pdf page must have difference with new page , but i can't find it ...
PyMuPDF version
1.24.2
Operating system
MacOS
Python version
3.12
Beta Was this translation helpful? Give feedback.
All reactions