51
Mamba
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/27 12:03

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
'TCPDF for Xoops' : download it here

I've downloaded it, but at the moment it shows an empty page when I'm trying to generate a PDF file. I'll try to test some more over the weekend, but I am curious if anybody else experiences the same behavior.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

52
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

@Mamba, you're the only person that have reported this blank page issue.

@chnwalkman, I'll look a little better your bug. Can you give me your charset used? Thank you.

53
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/28 5:32

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


hi, black_beard.

I used charset?
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">

<
head>
    
    
    <
meta http-equiv="content-language" content="zh-CN" />
    <
meta http-equiv="content-type" content="text/html; charset=UTF-8" />



54
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

hi, chnwalkman

the bug comes from the font used.
in the files ./Frameworks/tcpdf/config/tcpdf_config.php must be replaced 'helvetica' and 'courier' by 'cid0cs'
I tried it at home with simplified Chinese characters and they are displayed correctly

55
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/28 11:43

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


Thank you very much, black_beard

I'd downloaded your 2 zip files. One is news_tcpdf_for_xoops.zip, it's from:

http://sourceforge.net/projects/chgxoops/files/Modules/news/news_tcpdf_for_xoops.zip/download
Quote:
It's structure is:
/modules/News/makepdf.php
/modules/News/tcpdf


Another is tcpdf_for_xoops_1.00.zip, it's from:
https://sourceforge.net/projects/chgxoops/files/Frameworks/
Quote:
It's structure is:
/modules/News/makepdf.php
/xoops_lib/Frameworks/tcpdf


Right?

At first, I replaced "helvetica" and "courier" with "cid0cs" in the file "/modules/News/tcpdf/config/tcpdf_config.php"
The result is great

And at another, I removed "/modules/News/tcpdf", then copied "tcpdf" from the tcpdf_for_xoops_1.00.zip to the "/xoops_lib/Frameworks/", and replaced /modules/News/makepdf.php with new that from tcpdf_for_xoops_1.00.zip, and replaced "helvetica" and "courier" with "cid0cs" in the file "/xoops_lib/Frameworks/tcpdf/config/tcpdf_config.php", then created pdf file, the result is "Selected module does not exist!" :(

Regards.

56
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

the exact path is: ./Frameworks/tcpdf/ , not ./xoops_lib/Frameworks/tcpdf

57
chnwalkman
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/28 14:44

  • chnwalkman

  • Just popping in

  • Posts: 35

  • Since: 2004/8/25


Oh~~~, yes. I have corrected it.

But when I try to created the pdf, it can't open the page, and then shows "HTTP error 500(Internal Server Error)" in the Google Chrome.

58
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/28 16:22

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Quote:

Mamba wrote:
Quote:
'TCPDF for Xoops' : download it here

I've downloaded it, but at the moment it shows an empty page when I'm trying to generate a PDF file. I'll try to test some more over the weekend, but I am curious if anybody else experiences the same behavior.


The same.
In "/Frameworks/tcpdf/config/tcpdf_config.php" replace lines 25 and 26:

define ('K_PATH_MAIN',  XOOPS_ROOT_PATH.'/modules/news/tcpdf/');    //panwac     define ('K_PATH_URL', XOOPS_URL.'/modules/news/tcpdf/');


with

define ('K_PATH_MAIN',  XOOPS_ROOT_PATH.'/Frameworks/tcpdf/');    //panwac     define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');


After that I've got a pdf document generated, but with a '?' sign in any place, there should be polish characters. I changed 'helvetica' with 'dejavusans' and now everything is O.K.

59
Mamba
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/28 18:15

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
In "/Frameworks/tcpdf/config/tcpdf_config.php" replace lines 25 and 26:

Excellent catch! Thank you!
It's now working!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

60
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

Thank you @panwac, just forget my part.
The download has been updated, version tcpdf_for_xoops: 1.01

Login

Who's Online

226 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 226


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits