Hello to all. After yesterday's changes in the project , the task was to save not only the front side of the business card , but also the reverse side of the business card , when you click on the "Save business card" button at the bottom of the page. Then from the two saved SVG images (front and back of the business card) I will generate a two-page PDF file, on the server side, using the TCPDF class for PHP . But for this I need to add another field of textarea , so that the data on the back side of the business card will be entered there, which will not look aesthetic at all.

Questions:

  1. Can I remove the textarea , which is now on the prototype site, and instead add two input with hidden values, add XML data ( SVG ) to them - the front side of the business card and the back side of the business card, and send it to the server for saving to vector images with SVG extension?

  2. Does the TCPDF class support adding pages when generating PDF documents automatically using PHP ?

I hope, I clearly expressed my thoughts and you can understand what I meant ;-)

    1 answer 1

    The question can be - close, I have already implemented everything!

    1) Yes, it can be done, no problem.

    2) Yes, it supports

     // Добавляем еще одну страницу $pdf->AddPage('P', 'A4');