Skip to content

more rotation examples / advices for text rotation and positioning #967

Answered by gmischler
abubelinha asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome to fpdf2, @abubelinha!

allow me to invite you to a little thought experiment:

If you remove the rotation context from your example, where would you expect the cell text to appear on the page?
And now that you have your text somewhere, imagine it to slowly rotate around a pivot point at the very bottom of the page.
Which way will it move, and where will it end up?

Before thinking about it in this systematic way, you seem to have expected the text to be magically teleported to the pivot point.
That is evidently not how it works.

.cell() always places the text below and to the right of the current page position. The docstring for rotation() explains that this current position will no…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by abubelinha
Comment options

You must be logged in to vote
3 replies
@gmischler
Comment options

@abubelinha
Comment options

@gmischler
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
2 participants