html2pdf

If you have any 'mechanical' forge related issues/suggestions, pop them in here.
Locked
vuthy2008
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Jun 30, 2009 2:32 am

html2pdf

Post by vuthy2008 » Mon Oct 05, 2009 3:08 am

hi everybody there,

I'm a new joomla developer. so I don't kno much about joomla and now I wanna ask you about

how to use the module covert html to pdf file?Please help me.

Thanks

User avatar
drsawbones
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Fri Jun 06, 2008 10:00 am
Location: Arizona USA
Contact:

Re: html2pdf

Post by drsawbones » Mon Oct 05, 2009 3:29 am

Hello and Welcome!

Please preview documentation and videos for learning Joomla!
http://docs.joomla.org/Beginners

In Joomla! when you create an article, you have a management option to display a pdf icon on the article - parameters "show" pdf icon. This will automatically insert the ability to generate that viewable content rendering it as a pdf to be either downloaded or displayed on screen on the fly/automatically.

If you need help locating this parameter, please report back.

Regards,
Doc
joomla-webmasters.com

vuthy2008
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Jun 30, 2009 2:32 am

Re: html2pdf

Post by vuthy2008 » Mon Oct 05, 2009 3:45 am

thanks for ur reply but I wanna kno how to use that module , what class could I use to do that.

In fact I have one task read data from DB to display on HTML then I need to generate that HTML

to pdf file when I click on my button.Could you guide me how to do that? what class I should use ?

Thanks

User avatar
drsawbones
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Fri Jun 06, 2008 10:00 am
Location: Arizona USA
Contact:

Re: html2pdf

Post by drsawbones » Mon Oct 05, 2009 4:09 am

Ah! I'm so sorry, I didn't pay close attention to your forum location, and have been answering new to joomla for 3 hours. :-[

Perhaps what you seek is here:
http://api.joomla.org/Joomla-Framework/ ... ntPDF.html

Doc
joomla-webmasters.com

vuthy2008
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Jun 30, 2009 2:32 am

Re: html2pdf

Post by vuthy2008 » Mon Oct 05, 2009 6:56 am

Hi everybody,

When I use method writeHTML of TCPDF object I got an error

"TCPDF error: Undefined font: B". Could you tell me what is this problem? how

could I fixed that?

Thanks

User avatar
drsawbones
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Fri Jun 06, 2008 10:00 am
Location: Arizona USA
Contact:

Re: html2pdf

Post by drsawbones » Mon Oct 05, 2009 7:11 am

I've never done it, but found the source
http://api.joomla.org/__filesource/fsou ... html#a4449

maybe others more knowledgeable about such features will be here soon for you.

Doc
joomla-webmasters.com

vuthy2008
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Jun 30, 2009 2:32 am

Re: html2pdf

Post by vuthy2008 » Mon Oct 05, 2009 7:28 am

Thanks for your reply but in fact I had include this file already but it's still require

"TCPDF error: Undefined font: B". Could you please help me please!!!

Thanks

User avatar
drsawbones
Joomla! Explorer
Joomla! Explorer
Posts: 339
Joined: Fri Jun 06, 2008 10:00 am
Location: Arizona USA
Contact:

Re: html2pdf

Post by drsawbones » Mon Oct 05, 2009 7:58 am

Hopeful, and still trying to dig up relevant information for you.
Try this one:
http://www.akamarketing.com/blog/109-ph ... tcpdf.html

(fingers crossed)
Doc
joomla-webmasters.com

jamilabdallah
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Oct 27, 2011 3:17 pm

Re: html2pdf

Post by jamilabdallah » Thu Oct 27, 2011 3:26 pm

Guys its easy to fix this error

just check ur config for the K_PATH_MAIN variable it should look something like this:


/**
* installation path (/var/www/tcpdf/)
*/
define("K_PATH_MAIN", JPATH_SITE.DS.'libraries'.DS."tcpdf".DS);
/**
* url path (http://localhost/tcpdf/)
*/
//define ("K_PATH_URL", "http://localhost/_OPENSOURCE/tcpdf/");
define("K_PATH_URL", JURI::base().DS.'libraries'.DS.'tcpdf'.DS);



hope it works for u


Locked

Return to “JoomlaCode.org”