Comments (5)
We can only accept a bug report complete with an example file. I also noticed that you do not use the current version.
from pymupdf.
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.
or how to get the current CTM value from current page ? after get it , how to get a reverse one as the Morph ?
from pymupdf.
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. or how to get the current CTM value from current page ? after get it , how to get a reverse one as the Morph ?
This consideration will not resolve your problem. Please repeat using the current PyMuPDF version 1.24.3.
from pymupdf.
i am using 1.24.4 to reproduce this .
i know the previous cm is (0.24,0,0,-0.24,0,0 )
how to pass the morph param to generate
"4.16,0,0,4.16,0,0 cm" (the inverse of above cm ) instruction ? (thus before draw , the two matrix multipy equal to 1)
from below code seems it depends the start point and a matrix , how to decide them ?
in shape.finish there is :
if pymupdf.CheckMorph(morph):
m1 = pymupdf.Matrix(
1, 0, 0, 1, morph[0].x + self.x, self.height - morph[0].y - self.y
)
mat = ~m1 * morph[1] * m1
self.draw_cont = _format_g(pymupdf.JM_TUPLE(mat)) + " cm\n" + self.draw_cont
from pymupdf.
First of all, this seems to be no bug report any longer.
I am therefore going to move this thread to the Discussions tab. We can pick up questions there.
from pymupdf.
Related Issues (20)
- convert_to_pdf() - FzErrorFormat: code=7: truncated jbig2 segment header HOT 3
- OSS-Fuzz Integration HOT 6
- SegFault 11 when empty H1 H2 H3 H4 etc element is used in insert_htmlbox HOT 2
- ZeroDivisionError: float division by zero with page.apply_redactions() HOT 4
- PyMuPDF apply_redactions crops parts of the PDF in the final output HOT 7
- page.links return all links with same xref, is it something possible ?? HOT 6
- Invalid OCGs not ignored by SVG image creation HOT 1
- Redaction Annotation Fill Not Matching Up With Redacted Section HOT 4
- Updating Annotations HOT 1
- False result when finding bounding boxes for lines in blocks. HOT 6
- For what reason IRect exists? HOT 1
- MuPDF error: argument error: not a dict (string) HOT 3
- Get image inside table's cell
- `'width'` in `Page.get_drawings()` returns width equal as 0 HOT 1
- trouble in page.find_tables HOT 1
- Garbled extraction for Amazon Sustainability Report HOT 3
- This pdf would cause stack overflow exception, HOT 3
- ImportError: DLL load failed while importing _extra: The specified module could not be found. HOT 1
- Story.fit_width() has a weird line HOT 1
- The position box obtained through the get_text() method is inaccurate HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymupdf.