xoops forums

wcrwcr

Home away from home
Posted on: 2010/4/18 22:14
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#1

PDF creation using makepdf.php

Hi all

After some modules updates on an old site running xoops 20182, I´ve realized that the news (1.63 the last to run with xoops2018 series) was outputing a lot of errors all regarding charset.

After a lot of reading and research I´ve decided to use the old and good makepdf.php, cauz none of the solutions I´ve found worked for me

Just changed the call on the "news_article.html" template and everything is running fine except if the article has an external image. In that cases the pdf fails silently (blank page) however the images stored at my site are all displayed correctly.

Any tip on that issue?

Thank you all

Keep?n Xoopsing

ghia

Community Support Member
Posted on: 2010/4/19 9:14
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#2

Re: PDF creation using makepdf.php

Hi,

Easiest solution is to make sure all images are on site.

I don't know why external images fail. Some sites may have a leeching protect for their images. If all external images fail, then you can try to find the routines for incorporating the images in the pdf and see why they fail.

The pdf making routines are based on standalone PHP scripts. http://www.fpdf.org/ http://www.tcpdf.org/ There may be newer versions of it. By using the same hacks of the existing (old) version on the new version you might upgrade the scripts. It is maybe also possible to test the newer version stand alone with a html page created by saving the html source of one of your news pages.

Good luck and regards,
Gerard.

wcrwcr

Home away from home
Posted on: 2010/4/20 5:28
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#3

Re: PDF creation using makepdf.php

Hi ghia

Thanks for your input here

But now guess what?

My "yesterday solution" isn´t working anymore.
The call to "/modules/news/makepdf.php?storyid= " generates a blank page.

I´ll have to check with host if there is something wrong with makepdf.php file


For now i´ve just commented out the link on "news_article.html" template file.

Sad but true
Keep?n Xoopsing

wcrwcr

Home away from home
Posted on: 2010/4/21 1:11
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#4

Re: PDF creation using makepdf.php

Following up:

After consulting the analyst at surpass, the answer....:

"Unfortunately, we can't help you troubleshoot this issue as it is third-party software related. Please check in with the vendor of this third party software to make sure all the server needs are met and it is properly up to date"


Keep?n Xoopsing

ghia

Community Support Member
Posted on: 2010/4/21 8:05
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#5

Re: PDF creation using makepdf.php

Could it be to have to do with caching the template? Did you check the newer link was active at the display of the article?

wcrwcr

Home away from home
Posted on: 2010/4/24 6:25
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#6

Re: PDF creation using makepdf.php

sorry about the delay...


Yes ghia templates and cache are ok and regarding the active link, even if type directly www.mydomain.com/modules/news/makepdf.php?= I get the blank page

Very wierd
Keep?n Xoopsing