Newbee lame question about TCPDF

Archived from the Xataface Users forum.

gnomon — Tue Nov 27, 2012 5:20 am

Hi Steve,
I’m so lame so I can’t get it.
I’d like to call from javascript rendering of the current url when user agrees with it (confirm() method).
the onload() is included in ‘print_report’ action in applications actions directory. The ‘tcpdf’ directory is in htdocs.

If you can explain step-by-step, how can I do this?

Regards,
Peter

ps. sorry for any mistakes of my English


shannah — Fri Nov 30, 2012 4:48 am

Can you elaborate on what you are trying to do? Are you trying to print the current page as a PDF?


gnomon — Fri Nov 30, 2012 5:46 am

shannah wrote:Can you elaborate on what you are trying to do? Are you trying to print the current page as a PDF?

exactly.
I must to have confirmation, so I’m in trouble
From other hand, TCPDF while getting contents of html, gets ‘NO ACCESS’ in fields or a timeout executing php
I’ve few ideas. The first one is to forget about it . The second one is to use wkhtmltopdf called by exec().
I don’t know what to do.
Could you give me a hand?


shannah — Fri Nov 30, 2012 11:44 am

wkhtml2pdf will work better than TCPDF for this purpose. I have set up such a system a few times and it works quite well.


gnomon — Fri Nov 30, 2012 12:05 pm

shannah wrote:wkhtml2pdf will work better than TCPDF for this purpose. I have set up such a system a few times and it works quite well.

Thanks Steve,
I’ll check it out.
If I’ll get any problems, I will ask you for help

Regards