Saving page using the extracted dictionary #1899
-
Hi, I just started exploring PyMuPDF for my use case and have been struggling to do one simple thing. I extracted a page of a pdf as a dictionary using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Iterate over the dictionary - there are 3 hierarchy levels: blocks, lines and spans.
Please also note that there is a font replacement utility here which does a very similar thing. Maybe you can draught insight from it. |
Beta Was this translation helpful? Give feedback.
Iterate over the dictionary - there are 3 hierarchy levels: blocks, lines and spans.
For every span perform a
page.insert_text()
, taking the following argument values: