xoops forums

goffy

Quite a regular
Posted on: 12/11 16:06
goffy
goffy (Show more)
Quite a regular
Posts: 326
Since: 2010/12/27
#11

Re: PUBLISHER 1.05 FINAL RELEASED

hi

strange, today it looks fine. maybe it was a cache problem.

continue testing

SMEDrieben

Not too shy to talk
Posted on: 12/31 8:07
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#12

Re: PUBLISHER 1.05 FINAL RELEASED

Thanks for this version !

I have two questions / remarks:

1.
Throughout several publisher (and even Smartsection) versions, I have tried to increase the size of the page numbers in the page navigator of articles. I mean, if you add a [pagebreak] within an article, a page navigator appears showing page numbers. I would like to increase the size of these numbers.

Is there a CSS style defining this size ? I couldn't find; I failed to adjust the size in my theme specific templates. Defined somewhere else ?

2.
I added an html-table in a publisher article. It is shown correctly. However, when I use the makepdf.php of publisher 1.05, the table is mixed up. The table has 3 columns and 9 rows. The first (left) column has 3 td's with a rowspan=3 each. In the pdf-version, some td's of the second and third column move to the first and the rowspan=3 appears in the third column (not in the first). How can this be adjusted so that it it given correctly in the pdf ?

Thanks !

SMEdrieben

SMEDrieben

Not too shy to talk
Posted on: 1/2 11:41
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#13

Re: PUBLISHER 1.05 FINAL RELEASED

Concerning my first point:

I found the publisher_pagenav class. Adapting that class finally solved the page number size issue. The main problem was Chrome's caching routine: changens in css-files are not immediately shown in the web page after refreshing. i read something about CTRL+F5. Is that a solution ?

html-table in pdf: I didn't find any solution till now.

SMEDrieben

Bleekk

Theme Designer
Posted on: 1/3 7:45
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 933
Since: 2002/12/14
#14

Re: PUBLISHER 1.05 FINAL RELEASED

Is your website online?
Can we see that?

SMEDrieben

Not too shy to talk
Posted on: 1/3 14:34
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#15

Re: PUBLISHER 1.05 FINAL RELEASED

Page with html-table

PDF with mixed up table

SMEDrieben

Bleekk

Theme Designer
Posted on: 1/3 16:38
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 933
Since: 2002/12/14
#16

Re: PUBLISHER 1.05 FINAL RELEASED

I am not sure how you export the pdf bit with tcpdf it works correct
See http://www.medische-ethiek.nl/modules ... sher/print.php?itemid=238

SMEDrieben

Not too shy to talk
Posted on: 1/6 11:50
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#17

Re: PUBLISHER 1.05 FINAL RELEASED

Thanks !

I agree that the print.php works correctly, but the makepdf.php doesn't. I use as pdf-generator:

require_once XOOPS_ROOT_PATH '/class/libraries/vendor/tecnickcom/tcpdf/tcpdf.php';


Publisher's makepdf.php has at least two problems:

1. html-tables are mixed up
2. Greek characters are given as question marks (???)

Both are correct with the print.php. I suggest that it is in de tcpdf itself or how the data are deliverd at the tcpdf. I use the saem tcpdf with the latest release of the news modle. using that module the same problem occures. Both with the html-tables and teh Greek characters.

Furhter suggestions ?

SMEDrieben

Mamba

Moderator
Posted on: 1/6 14:29
Mamba
Mamba (Show more)
Moderator
Posts: 10587
Since: 2004/4/23
#18

Re: PUBLISHER 1.05 FINAL RELEASED

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:
$pdf->SetFont('dejavusans'''12);
//initialize document
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

aerograf

Quite a regular
Posted on: 1/6 19:04
aerograf
aerograf (Show more)
Quite a regular
Posts: 201
Since: 2017/1/7 1
#19

Re: PUBLISHER 1.05 FINAL RELEASED

Typically, the problem with the fonts.
The same problems are in Cyrillic.
Here it is in Greek.

SMEDrieben

Not too shy to talk
Posted on: 1/7 13:45
SMEDrieben
SMEDrieben (Show more)
Not too shy to talk
Posts: 156
Since: 2009/6/17
#20

Re: PUBLISHER 1.05 FINAL RELEASED

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):

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


The main feautures state:

//  * UTF-8 Unicode and Right-To-Left languages;


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

SMEDrieben