This topic is locked
[SOLVED]

 Create PDF form PHP Runner

12/15/2006 1:21:40 PM
PHPRunner General questions
R
Rene Pedersen author

Hi
I am trying to make some PDF´s from phpr but i can not find out where to place the code. I am using fpdf from fpdf.org and i have a simpel listing and when i clik on one of the items on the list page i get a view page, and this page i would like to have as an PDF. But i dont know where to place the code, can some one help me?
René

Sergey Kornilov admin 12/15/2006

Rene,
take a look into export.php file.
You can add export to PDF option there.
If you are able to implement this feel free to share your code as this may benefit other users.
PS. we'll have export to PDF available in January 2007.

L
larsonsc 12/15/2006

PS. we'll have export to PDF available in January 2007.


Just out of curiousity, will the export to PDF possibly be available as an event so that when a record is stored in the DB, a hard copy file could be created and linked in the DB table?
--Shawn

Sergey Kornilov admin 12/15/2006

Shawn,
export to PDF function will be similar to current export to Word,Excel etc functionality.
Nothing prevents you from passing a SQL string that points to record just added to export routine that can save created document to the disk instead of outputting it to the browser.

L
larsonsc 12/19/2006

Shawn,

export to PDF function will be similar to current export to Word,Excel etc functionality.
Nothing prevents you from passing a SQL string that points to record just added to export routine that can save created document to the disk instead of outputting it to the browser.


Fantastic. I haven't tried exporting to a file via a routine, so I'll have to eventually take a whack at this since being able to create a downloadable document which is linked in each intake record sould be of great benefit. Thanks for the response.