Re: [plugin] [ORPHAN] wan_pdf

I found a solution for the umlauts and quotes problem.
It works for me in textpattern 4.0.6 and php 5.2.5, Euro-Sign, Umlauts and most of the quotes now right , but inverted commas not completely right drawed.

After upgrading xhtml2pdf in /textpattern/lib/xhtml2pdf/ to v0.3 (it now uses TCPDF instead of UPDF or FPDF)
I had to change the following lines in tcpdf_extends.php in the “SetFont” function, beginning in the 7th row,
I had to replace

because of a “TCPDF error: Undefined font: B”.
The solution I found here

After that I changed only the “x2fpdf” call in the “wan_pdf” – plugin code to “xfpdf” and it worked.
You can get xhtml2pdf v0.3 here

If you choose “freeserif” the pdf-files will get too big, because of the embedded true type fonts.
You can get better and smaller files by embedding compressed type1 fonts with only needed charsets.
The setup is described here.

There are still problems, maybe a more competent person will find solutions.