I'm using a cgi script mimetex.cgi to dynamically generate gif's of text code using <img src="/includes/mimetex.cgi?tex_code_here"> the script/image works perfectly and it dsiplays in the html page I want to turn into a pdf. When I try and use html2fpdf to turn it into a pdf I get the error
FPDF error: GIF parser: unable to open file /home/.astor/musiczine/notely.net/includes/fpdf/no_img.gif
no_image.gif is in the right place...does the folder need chmod or something?
Also is it possible to put dynamic gifs into a pdf using html2fpdf?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-08-13
I figured it down to line 842 of html3fpdf. There is an fopen of the image there. Obviously since the image doesn't actually exist on the server the no_img.gif gets put in place (there is a problem with the no_img.gif location on the server..everything else works fine)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I'm using a cgi script mimetex.cgi to dynamically generate gif's of text code using <img src="/includes/mimetex.cgi?tex_code_here"> the script/image works perfectly and it dsiplays in the html page I want to turn into a pdf. When I try and use html2fpdf to turn it into a pdf I get the error
FPDF error: GIF parser: unable to open file /home/.astor/musiczine/notely.net/includes/fpdf/no_img.gif
no_image.gif is in the right place...does the folder need chmod or something?
Also is it possible to put dynamic gifs into a pdf using html2fpdf?
I figured it down to line 842 of html3fpdf. There is an fopen of the image there. Obviously since the image doesn't actually exist on the server the no_img.gif gets put in place (there is a problem with the no_img.gif location on the server..everything else works fine)
I solved the same problem by creating the image into a tmp folder with a random name, then including these images into the pdf