Some PDF generation failing on talks.php.net
| From: | Jesus M. Castagnetto | Date: | Mon, 30 Aug 2004 19:04:28 +0000 |
| Subject: | Some PDF generation failing on talks.php.net | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1043@lists.php.net to get a copy of this message | ||
I noticed that some presentations that use slides in
more than one dir, and in which the slides refer to
images in their respective dirs, are having problems
finding those images, e.g.
http://talks.php.net/show/egovos
http://talks.php.net/show/cosst2003_php-ecosystem
to mention a couple. This is with the current
display.php (even before I fix the div by zero),
without Christian mods.
The presentations show correctly when using the HTML
rendering it is only when trying to generate a PDF
that display.php produces some warnings, e.g. in the
case of the first talk above, they are (sans HTML
tags):
Warning:
getimagesize(presentations/slides/egovos/serverside.png):
failed to open stream: No such file or directory in
/local/Web/sites/talks/display.php on line 1384
Warning:
getimagesize(presentations/slides/egovos/phpstats.png):
failed to open stream: No such file or directory in
/local/Web/sites/talks/display.php</b> on line 1384
Strange behavior, because the "slideDir" attribute is
correctly set when producing the HTML output, but it
is not set correctly when producing the PDF output, it
is rather set the same for all slides in a
presentation. I don't know when this bug appeared (I
have not updated the code for some months), but I've
just caught it today when I did a cvs update.
Any ideas?
=====
--
Jesus M. Castagnetto (jmcastagnetto@php.net)
Research: http://metallo.scripps.edu/
Weblog: http://weblog.castagnetto.org/
PEAR stuff: http://pear.php.net/user/jmcastagnetto
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail