![]() |
yet another pdf library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: yet another pdf library (/showthread.php?tid=16745) Pages:
1
2
|
yet another pdf library - El Forum - 03-16-2009 [eluser]pixelazion[/eluser] hi everyone, i found another pdf library which handles long tables pretty well, i'm having trouble converting it as ci plugin. I'v been to dompdf to tcpdf and still have some layout issues. anyway here's the link to the found library. http://www.html2pdf.fr/?lang=en see example 5 to see what i mean from the link above. i need help on this one. i just need it to be converted to CI plugin. here's what i got so far: Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); directory structure is standard CI tnx yet another pdf library - El Forum - 03-16-2009 [eluser]Thorpe Obazee[/eluser] I haven't used html2pdf library. What layout issues occurred using dompdf? yet another pdf library - El Forum - 03-16-2009 [eluser]pixelazion[/eluser] you see when long table breaks they lose the header part specially when a table cell breaks into 2 pages, lost its width attribute and the 2nd page will now depend on the content. yet another pdf library - El Forum - 03-16-2009 [eluser]pistolPete[/eluser] This should be changed: Code: // second parameter: yet another pdf library - El Forum - 03-16-2009 [eluser]pixelazion[/eluser] tnx for the reply, i'm really new to this library plus, it's french ^_^ how do you save the pdf to a directory directly? just like dompdf you can write it to file... ^_^ yet another pdf library - El Forum - 03-16-2009 [eluser]pistolPete[/eluser] [quote author="pixelazion" date="1237236875"]i'm really new to this library plus, it's french ^_^ [/quote] I just had a quick look, didn't know it either. And yes, it's pretty unusual to have a non english source code ![]() [quote author="pixelazion" date="1237236875"] how do you save the pdf to a directory directly? just like dompdf you can write it to file... [/quote] The second parameter of Output() accepts nearly the same arguments as the underlying FPDF class method: Code: // second paramter: yet another pdf library - El Forum - 03-16-2009 [eluser]pixelazion[/eluser] tnx pistolPete, i haven't really gone down to the library, i was so preoccupied yesterday, but anyway.... tnx for cracking the nutshell for me. yet another pdf library - El Forum - 03-16-2009 [eluser]pixelazion[/eluser] here's a sample of what i'm trying to achieve here. this is done using fpdf library hardcoding the tables, not in html2pdf version. http://www.fpdf.org/en/script/morepagestable.pdf yet another pdf library - El Forum - 06-16-2009 [eluser]dlange[/eluser] Hello pixelazion, I'm also interested in the html2pdf plugin. Have you completed the plugin? // Daniel yet another pdf library - El Forum - 06-16-2009 [eluser]pixelazion[/eluser] yep, i'm still stucked with dompdf... its still the best one around. ^_^ |