The Joomla! Forum ™





Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: html2pdf
PostPosted: Mon Oct 05, 2009 3:08 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jun 30, 2009 2:32 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 3:29 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 06, 2008 10:00 am
Posts: 339
Location: Arizona USA
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 3:45 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jun 30, 2009 2:32 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 4:09 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 06, 2008 10:00 am
Posts: 339
Location: Arizona USA
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 6:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jun 30, 2009 2:32 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 7:11 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 06, 2008 10:00 am
Posts: 339
Location: Arizona USA
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 7:28 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jun 30, 2009 2:32 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Mon Oct 05, 2009 7:58 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 06, 2008 10:00 am
Posts: 339
Location: Arizona USA
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


Top
 Profile  
 
 Post subject: Re: html2pdf
PostPosted: Thu Oct 27, 2011 3:26 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Oct 27, 2011 3:17 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group