How to insert(replace) text with 90° rotation #1750
Replies: 2 comments
-
I'm still looking for any possible help. Thanks for any help in advance! |
Beta Was this translation helpful? Give feedback.
-
Use Based on As a general comment: If you use render mode 3, the new text will be invisible, BTW. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to make a train timetable translate programm for my master’s thesis, and PyMuPDF reaches most of my goal. But still I have some needs that I can't manage on my own..
For example, I have a german train timetable to be translated to a chinese train timetable:


For translating this into a chinese one, I have to rotate this timetable 90 degrees, like this:
Now I have a problem, the number on the x-axis(like 4,5 on the picture, which refers to time) ,they "lie" on the x-axis, but I want them to "stand" on x-axis. In other words, I want to rotate these numbers 90 degrees.
The same problem is, the text translated (like" Leipzig Hbf"), I managed to translate them into chinese but I also need a 90-degree-rotation.
I used
`
def set_font_de(doc, font_name, font_file):
`
I also tried
`
for page in doc:
`
Unluckily, these methods don't work well : (
Thanks for any help in advance!
Deutsche Fahrplan 1.pdf
Beta Was this translation helpful? Give feedback.
All reactions