Page 1 of 1

Newbee lame question about TCPDF

PostPosted: Tue Nov 27, 2012 5:20 am
by gnomon
Hi Steve,
I'm so lame so I can't get it. :oops:
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? :wink:

Regards,
Peter

ps. sorry for any mistakes of my English

Re: Newbee lame question about TCPDF

PostPosted: Fri Nov 30, 2012 4:48 am
by shannah
Can you elaborate on what you are trying to do? Are you trying to print the current page as a PDF?

Re: Newbee lame question about TCPDF

PostPosted: Fri Nov 30, 2012 5:46 am
by gnomon
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?

Re: Newbee lame question about TCPDF

PostPosted: Fri Nov 30, 2012 11:44 am
by shannah
wkhtml2pdf will work better than TCPDF for this purpose. I have set up such a system a few times and it works quite well.

Re: Newbee lame question about TCPDF

PostPosted: Fri Nov 30, 2012 12:05 pm
by gnomon
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