Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: PUBLISHER 1.05 FINAL RELEASED
by Mamba on 2018/1/8 6:42:42

From this article: http://www.cybernetikz.com/create-pdf-to-html/

Quote:
Always remember a thing for designing layout that tcpdf is good for layout designing of a pdf but it doesn’t always support all CSS. Basic CSS and in line CSS are the best ways to keep the design in tcpdf.
If you want to design a table then always try to use table default properties like valign width etc methods. Otherwise, your tries will be in vain.
Re: PUBLISHER 1.05 FINAL RELEASED
by Mamba on 2018/1/7 16:52:53

The "mixing up of the html-table" could have various reasons, e.g. related to CSS.

You can compare the HTML/CSS code that you have to, this example and see if there are any differences:
https://tcpdf.org/examples/example_048/

FYI: I copied your table and pasted it in publisher on my PC, but without your CSS, and the PDF was created correctly:
Resized Image

I have the same version of TCPDF: 6.2.13
Re: PUBLISHER 1.05 FINAL RELEASED
by SMEDrieben on 2018/1/7 13:45:57

Thanks Mamba ! With the dejavusans font the Greek characters are given correctly in the pdf !

This is the beginning of the tcpdf.php (full version, not the special Xoops-version):

le="color: #000000"><?php //============================================================+ // File name : tcpdf.php // Version : 6.2.13 // Begin : 2002-08-03 // Last Update : 2015-06-18 // Author : Nicola Asuni - Tecnick.com LTD - http://www.tecnick.com - info@tecnick.com // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) // -------------------------------------------------------------------


The main feautures state:

le="color: #000000"><?php // * UTF-8 Unicode and Right-To-Left languages;


The remaining problem is the mixing up of the html-table in the pdf.

SMEDrieben
Re: PUBLISHER 1.05 FINAL RELEASED
by aerograf on 2018/1/6 19:04:58

Typically, the problem with the fonts.
The same problems are in Cyrillic.
Here it is in Greek.
Re: PUBLISHER 1.05 FINAL RELEASED
by Mamba on 2018/1/6 14:29:25

What version of TCPDF are you using? What font is the default one?

Just because the versions are the same, it doesn't mean that you're using the same configuration, e.g. if you use different fonts, you might have different results, if one of them supports UTF-8, and the other doesn't.

Try to add this line before line 114 in the makepdf.php to use this font and see if it helps:
le="color: #000000"><?php $pdf->SetFont('dejavusans', '', 12); //initialize document

Who's Online

230 user(s) are online (188 user(s) are browsing Support Forums)


Members: 0


Guests: 230


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits