Skip to content

PDF and muPDF coordiantes #3889

Answered by anhalu
anhalu asked this question in Q&A
Sep 25, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

update problem

I think I'm misunderstanding something, the coordinates of the pdf are read by pymupdf (forming the coordinates of mupdf). The original PDF file is rotated so the coordinates of mupdf are also rotated. Now I set page.remove_rotation() which solved the problem, but at the same time adding remove_rotation() generates a lot of shape points (x, y coordinate pairs in the items of the shape) which increases the calculation a lot. I was going to use convex hull to handle this but it's not efficient enough.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@anhalu
Comment options

@K8S666
Comment options

@anhalu
Comment options

@anhalu
Comment options

Answer selected by anhalu
@JorjMcKie
Comment options

@anhalu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3884 on September 25, 2024 15:26.