This topic is locked

Print selected records with TCPDF

10/14/2022 5:09:46 PM
PHPRunner General questions
B
beishmc author

Hello, i need help with custom button.
I have a list of some data that i want to user select and clicking on custom button create PDF documents with TCPDF plugin.
When i use $data = $button->getNextSelectedRecord() i only have printed one row with even when select multiple rows with data.
When user select multiple rows and clicks on button id parameter is sent to location.href='print_list_pdf.php?id='+result["id"]; and data with the id is printed on PDF document but only first row with first selected id.
How can i print all selected data in rows using the TCPDF?
img alt

admin 10/15/2022

No expirience with TCPDF. Can you use the built-in PDF export functionality?

B
beishmc author 10/15/2022

Yes, i use built-in PDF export for some projects but in this case i need more granular look of PDF file so TCPDF is more suitable for that.

admin 10/16/2022

I see. I guess you need to make your question more specific. What exactly causes the trouble here?