Newbee lame question about TCPDF

A place for users and developers of the Xataface to discuss and receive support.

Newbee lame question about TCPDF

Postby gnomon » Tue Nov 27, 2012 5:20 am

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
gnomon
 
Posts: 8
Joined: Mon Aug 27, 2012 12:16 am

Re: Newbee lame question about TCPDF

Postby 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?
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Newbee lame question about TCPDF

Postby 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?
gnomon
 
Posts: 8
Joined: Mon Aug 27, 2012 12:16 am

Re: Newbee lame question about TCPDF

Postby 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.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Newbee lame question about TCPDF

Postby 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
gnomon
 
Posts: 8
Joined: Mon Aug 27, 2012 12:16 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved