• Increase font size
  • Default font size
  • Decrease font size

how to generate pdf in joomla

Joomla is capable to convert html code into pdf document. Here is the code which may be used in your new joomla components:

 

 
//variable with a html code you want to convert into PDF file
$html = "test of the <b>PDF</b> file generator";
 
$pdf = new JDocumentPDF();
$pdf->setTitle($title);
$pdf->setName($name);
$pdf->setDescription("CV automaticaly generated at http://strongcv.com");
$pdf->setMetaData('keywords', "free CV builder");
$pdf->setBuffer($html);
$data = $pdf->render();
 
//Output new PDF file
header('Content-type: application/pdf');
header("Content-Disposition: attachment; filename={$_POST[filename]}");
echo $data;
 

 

Comments  

 
0 #147 AdulToySexCom 2018-01-19 01:14
Best Adult Toys and Sex Toys for your Healthy Life! Sex Toys, Dildos, Vibrators, Sex Dolls, and Many More

When you want to shop erotic toys, AdulToySex.com has it all. Whether male or female, straight or gay, and anywhere in between, we have the adult toys and movies you’re looking for.

We also provided FREE SHIPPING WORLDWIDE without minimum orders!

http://www.AdulToySex.com/
Quote
 
 
0 #146 Ferne 2018-01-18 05:25
Faça pelo menos três conjuntos de cada exercício.
Quote
 
 
0 #145 FishingEurek4c0m 2018-01-18 04:45
Shop for all your fishing gear needs at http://www.FishingEureka.com/ ;
Featuring rods, reels, bait & tackle, tools and supplies for saltwater, freshwater, ice & fly-fishing.
FREE Shipping Worldwide! (No Minimum Orders!)
Quote
 
 
0 #144 Johny Jackson 2018-01-16 04:41
This blog was... how do I say it? Relevant!! Finally I have found something that
helped me. Thanks a lot!

my web site Johny Jackson: http://bit.ly/2EWLfYx
Quote
 
 
0 #143 Johny Jackson 2018-01-13 05:26
Hi there to every body, it's my first visit of this website; this
blog contains amazing and genuinely good data in favor of readers.



my site - Johny Jackson: http://bit.ly/2EWLfYx
Quote
 
 
0 #142 TwilaRar 2018-01-04 01:11
Revolutional update of SEO/SMM package "XRumer 16.0 + XEvil":
captcha regignizing of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
and more than 8400 another size-types of captcha,
with highest precision (80..100%) and highest speed (100 img per second).
You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

Interested? You can find a lot of introducing videos about XEvil in YouTube.
See you later ;)

P.S. XEvil 4.0. recognize Google ReCaptcha2 too;)
Quote
 
 
0 #141 FirstConcepcion 2018-01-03 05:41
I have noticed you don't monetize your blog, don't waste your traffic,
you can earn extra cash every month because you've got hi quality content.
If you want to know how to make extra money, search for: Boorfe's tips best
adsense alternative
Quote
 
 
0 #140 TwilaRar 2017-12-31 22:54
Absolutely NEW update of SEO/SMM software "XRumer 16.0 + XEvil 3.0":
captcha breaking of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
and more than 8400 another categories of captchas,
with highest precision (80..100%) and highest speed (100 img per second).
You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

Interested? There are a lot of impessive videos about XEvil in YouTube.
See you later!

P.S. XEvil 4.0. break ReCaptcha2 too !
Quote
 
 
0 #139 Matilda 2017-12-07 01:13
Essa costume ainda não viajamos.” Pede sua companheira.
Quote
 
 
0 #138 FrederickaSmall 2017-11-28 22:05
I have checked your blog and i've found some duplicate content,
that's why you don't rank high in google, but there is a tool that can help you to create 100% unique
articles, search for: Boorfe's tips unlimited
content
Quote
 

Add comment

No bad words.


Security code
Refresh


New articles

Differential Equations - Simple spring model Machine Learning and Robotics
Read More 1695 Hits
Kalman Filter implementation Machine Learning and Robotics
Read More 2475 Hits
Inverse kinematics Machine Learning and Robotics
Read More 3025 Hits
gpsim tutorial Machine Learning and Robotics
Read More 6091 Hits

New articles

Differential Equations - Simple spring model Machine Learning and Robotics
Read More 1695 Hits
Kalman Filter implementation Machine Learning and Robotics
Read More 2475 Hits
Inverse kinematics Machine Learning and Robotics
Read More 3025 Hits
gpsim tutorial Machine Learning and Robotics
Read More 6091 Hits
Design by i-cons.ch / etosha-namibia.ch