Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

html2pdf error on P...
 
Notifications
Clear all

html2pdf error on PDF export

9 Posts
2 Users
0 Reactions
15.4 K Views
(@orochvilato)
Posts: 10
Active Member
Topic starter
 
[#200]

Hello,

Each time I try to export a screen to PDF I get the following error :

ERROR : Une erreur est survenue le 2011-09-19 à 16:46:21

Looking at the log file, here is the error :

2011-09-19 16:46:21 ** ERROR ** ERROR **
2011-09-19 16:46:21
** ERROR ** on file '/var/www/external/html2pdf/_tcpdf_5.0.002/tcpdf.php' at line (7374)
2011-09-19 16:46:21
** ERROR ***** cause = Undefined index: n

Any idea of the problem ?

Regards,

Olivier


 
Posted : 20 Sep 2011 0H57
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Hi,
It look like an error from V1.6, fixed in 1.7.
Which version are you using ?
Does it happen on all pdf export or only on some ?
Is it the same on reports export, on detail of element export and on list of elements export ?

Thx.


 
Posted : 20 Sep 2011 1H02
(@orochvilato)
Posts: 10
Active Member
Topic starter
 

Hello,

It happens on all PDF exports.

Maybe I'm missing some prerequisites for the html2pdf library ?

Regards,

Olivier


 
Posted : 20 Sep 2011 16H08
(@orochvilato)
Posts: 10
Active Member
Topic starter
 

I've forgotten :
I'm running V1.7.2


 
Posted : 20 Sep 2011 16H16
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Can you check that GD library is correctly installed ?
(run phpInfo() and search for GD)

Thanks.


 
Posted : 20 Sep 2011 18H33
(@orochvilato)
Posts: 10
Active Member
Topic starter
 

GD is installed

From phpinfo() :

GD Support enabled
GD Version 2.0
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.4.4
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.44
WBMP Support enabled


 
Posted : 20 Sep 2011 22H23
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Hi,
Corresponding to the error line, it is a font issue.
What is the defaut font of your browser ?
On IE : Options > Général tab > button fonts.

Could you try to download htmltopdf and copy the content of _tcpdf_5.0.002/fonts into /var/www/external/html2pdf/_tcpdf_5.0.002/fonts, and test again.
(I can provide you with the files if needed)
=> I reduced the fonts used (just to reduce setup file soze), and did not notice any issue till now. If this solves your issue, next versions will include all fonts.

Regards.


 
Posted : 20 Sep 2011 23H12
(@orochvilato)
Posts: 10
Active Member
Topic starter
 

Hello,

I've copied the content of _tcpdf_5.0.002/fonts into /var/www/external/html2pdf/_tcpdf_5.0.002/fonts, IT WORKS !!

It was indeed a font problem

FYI Projector ria is installed on a Ubuntu 11.04 Server OpenVZ VM.

Thanks,

Regards,

Olivier


 
Posted : 21 Sep 2011 0H11
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Great !
Solution will be included in V1.8.0.


 
Posted : 21 Sep 2011 1H30
Share:

Scroll to Top