Skip to content

Table positioning in fpdf2 #918

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

You must be logged in to vote

Before starting the first table, eg.:

table_top_y = pdf.y

and before starting the second table:

pdf.y = table_top_y

the "y" attribute of the FPDF class is how it maintains its current vertical position internally. You can check its value at any time. You can obviously also change it, if you want to deviate from the standard top-down sequence of element placement on the page.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Constance2023
Comment options

@gmischler
Comment options

Answer selected by gmischler
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