Skip to content
Advertisement

PDFlib place table on bottom of defined fitbox

I have created a table in PDFlib PHP and defined the coordinates of the fitbox as the following:

JavaScript

Now I want the table to start at the bottom of these coordinates and I want the table to grow to the top if I add more cells. How can I achieve that?

The function I wrote so far (here the table starts at the top):

JavaScript

Advertisement

Answer

I have found the answer. In the $optlist for the fit_table you can define the position of the table which (if you want it at the bottom of the fitbox) looks like this:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement