FPDF

180 views
Skip to first unread message

Lukas Polak

unread,
Mar 12, 2009, 7:15:12 PM3/12/09
to Joomla - CMS
Hi,

I want to ask if it's possible to include a new version of fpdf library
into new joomla, because current version is one-year old and it doesn't
correctly rendering tables.


elf

Andrew Eddie

unread,
Mar 12, 2009, 7:29:29 PM3/12/09
to joomla-...@googlegroups.com
Have you tried the latest version yourself Lukas?

Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer




2009/3/13 Lukas Polak <polak....@gmail.com>:

Sam Moffatt

unread,
Mar 12, 2009, 7:43:40 PM3/12/09
to joomla-...@googlegroups.com
I'm confused, we have TCPDF, I didn't think we had FPDF? I remember
last year about mid way through we did an upgrade of TCPDF to
allegedly fix some things. In testing with the Bug Squad it turned out
to break more than it fixed, so I'm sure that got reverted somewhere.
At that point we decided it was far too risky to upgrade TCPDF
continually and keep retesting when what we had mostly worked (or
worked better in more situations than its replacement did).

Sam Moffatt
http://pasamio.id.au

Lukas Polak

unread,
Mar 12, 2009, 7:48:42 PM3/12/09
to joomla-...@googlegroups.com
yes. I'm sorry, I've mistakenly writen wrong name. It's tcpdf and actual
version in my joomla 1.5.9. is 2.6 and there is already tcpdf 4.5.026
(yesterday - http://sourceforge.net/projects/tcpdf/ ).
elf


Andrew Eddie wrote / napísal(a):

Ian MacLennan

unread,
Mar 12, 2009, 8:59:56 PM3/12/09
to joomla-...@googlegroups.com
Yes, and they have also done 26 releases this year (6 already this
month), so a. you can't really judge by version numbers. These
frequent releases and inspecting the code made us weary of the
stability.

Ian

infograf768

unread,
Mar 13, 2009, 4:34:36 AM3/13/09
to Joomla! CMS Development
TCPDF 4.5 has been added to trunk by Hannes recently.
It is the php5 version I guess.
Many bugs/ironing out have been solved since the 2.6 tcpdf we use in
1.5 as my tests here show.
Although remains specific display problems with tables with % width
instead of fixed width, the results are pretty good.
Main improvements were done concerning RTL for Arabic or Farsi, which
were of high concern to us.
Some other aspects of the bug fixing are unrelated to Joomla needs
(barcode for example).
There are stil some issues that IMO could be corrected when we prepare
articles to send to the library.
Specifically double spaces and links who break display.
Another issue is a tcpdf limitation as it concerns hard coded font
face in article used instead of CSS.
This can't be handled correctly except if we could filter these tags
before sending to the library.

For what I know, TCPDF is the only OS UTF8 available solution we have
and although some critics said that they could code easily a new
library, this has not been done yet.
If anyone wants to do it though, it would be welcomed.
The most important improvement, if feasible, would be to include only
a subset of the font used in the produced pdf in order to make it much
lighter as the whole font is for now included when using tcpdf, which
makes producing Chinese pdf for example a useless feature.

On 13 Mar, 01:59, Ian MacLennan <ianlen...@gmail.com> wrote:
> Yes, and they have also done 26 releases this year (6 already this
> month), so a. you can't really judge by version numbers.  These
> frequent releases and inspecting the code made us weary of the
> stability.
>
> Ian
>
> On Thu, Mar 12, 2009 at 7:48 PM, Lukas Polak <polak.luka...@gmail.com> wrote:
>
> > yes. I'm sorry, I've mistakenly writen wrong name. It's tcpdf and actual
> > version in my joomla 1.5.9. is 2.6 and there is already tcpdf 4.5.026
> > (yesterday -http://sourceforge.net/projects/tcpdf/).
> > elf
>
> > Andrew Eddie  wrote / napísal(a):
> >> Have you tried the latest version yourself Lukas?
>
> >> Regards,
> >> Andrew Eddie
> >>http://www.theartofjoomla.com- the art of becoming a Joomla developer
>
> >> 2009/3/13 Lukas Polak <polak.luka...@gmail.com>:

Lukas Polak

unread,
Mar 13, 2009, 10:08:26 AM3/13/09
to joomla-...@googlegroups.com
Yes, I understand. I was just asking, because current version of tcpdf
which is included in joomla has problems with rendering tables.However,
I'm aware of fact that they haven't been completely solved yet, but it'd
be better than right now. I know about these errors, I've came acroos
them when I've upgrade this library. Probably it would be enough to
include new version ( not neccessary the newest one), but it's only my
suggestions.

elf

Ian MacLennan wrote / napísal(a):

Omar Ramos

unread,
Mar 13, 2009, 6:52:08 PM3/13/09
to joomla-...@googlegroups.com
I was doing some looking into PDF creation now and in an article about Haru on Zend's DevZone and commenter mentioned mPDF:
http://mpdf.bpm1.com/

"mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML."

TCPDF is from what I've read the best class available for PDF creation, but I thought it was mentioning the one above since it mentions specifically about creating the PDF files from HTML, which might be useful for articles.

Also, on looking at the JDocumentPDF class I was noticing there doesn't seem to be a method available for "getEngine()" which might be useful for modifying the configuration of the TCPDF() object (for example, setting to landscape mode?).

I have not gotten to experiment with this yet, but in an upcoming project it is something that I will need to look into and I'm hoping that I'll be able to do what I need to from within JDocument rather than having to construct the PDF directly using TCPDF().
Reply all
Reply to author
Forward
0 new messages