CodeIgniter Forums
Appending Session data[Username] to an existing PDF File - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Appending Session data[Username] to an existing PDF File (/showthread.php?tid=78120)



Appending Session data[Username] to an existing PDF File - nehemiahlimo - 12-03-2020

Hello, 
I have been trying to append the name of the logged in user to an existing pdf when the user clicks the download button, though have not achieved it. I tried to read about how dompdf can be utilized but seems it doesn't have that what i wish to implement, can anyone guide me please.
Thanks.


RE: Appending Session data[Username] to an existing PDF File - craig - 12-04-2020

Looks like this could be achieved using mPDF - https://mpdf.github.io/reference/mpdf-functions/setsourcefile-v8.html


RE: Appending Session data[Username] to an existing PDF File - sammyskills - 12-04-2020

If the name of the logged in user is appended to the html of your page, then I don't see any reason why it can't be achieved with Dompdf.


RE: Appending Session data[Username] to an existing PDF File - nehemiahlimo - 12-04-2020

(12-04-2020, 03:26 AM)sammyskills Wrote: If the name of the logged in user is appended to the html of your page, then I don't see any reason why it can't be achieved with Dompdf.
The one am talking about is an already existing pdf file, not the one that is generated from the system.