PDF generation? Posted by jusmar74 28 Jan 2007 12:28 UTC Hello! I have a problem with pdf generation when the page includes an image? Any idea how to make pdf generation working with images too? Thank, jusanteri
Posted by jusmar74 29 Jan 2007 12:40 UTC > Hello! I have a problem with pdf generation when the page includes an image? Any idea how to make pdf generation working with images too? > > Thank, jusanteri Anybody with an idea? I suppose i'm not the onlyone with this problem? edit: so pdf is generated but instead of the image there is: > http://mysite.com/show_image.php?id=20 could not be uploaded
Posted by Gary 31 Jan 2007 00:16 UTC First, is the image accessible by Anonymous with this url? It has to be to be processed by the PDF generation sw. I suspect this is the issue. Second, what is the format of the image? Only jpeg work in 1.9.x Third, is GD loaded on the server (look at Admin -> Image Library) 1.10 has a rewrite for the pdf generation using fpdf. Gary
Posted by jusmar74 31 Jan 2007 08:50 UTC > First, is the image accessible by Anonymous with this url? It has to be to be processed by the PDF generation sw. I suspect this is the issue. > Second, what is the format of the image? Only jpeg work in 1.9.x > Third, is GD loaded on the server (look at Admin -> Image Library) > > 1.10 has a rewrite for the pdf generation using fpdf. > > Gary > The group Anonymous can not login, the admin gives the rigts to users. GD is in the server. I have tried with jpeg. PDF generation sw? What is fpdf? Thanks for your answers, Jusanteri
Posted by Gary 31 Jan 2007 19:17 UTC If an Anonymous person cannot view the image, then the image will not be in the PDF generated file. Without logging in, does the link http://mysite.com/show_image.php?id=20 show the image? If not. then that is the problem. You may have to put the image into an image gallery that has anonymous read access. For tw to create a PDF file, it processes the contents of the wiki page and generates the appropriate PDF syntax. This translation in 1.9.x is performed with the PDFlib library (in the lib/pdflib folder) For images, function img() in pdflib.php is where images are opened and processed. In 1.10, the translation is performed by the fpdf library http://fpdf.org . I have had more success with 1.10 PDF generation than with 1.9. Gary
Posted by jusmar74 08 Feb 2007 13:04 UTC > If an Anonymous person cannot view the image, then the image will not be in the PDF generated file. Without logging in, does the link http://mysite.com/show_image.php?id=20 show the image? If not. then that is the problem. You may have to put the image into an image gallery that has anonymous read access. > > For tw to create a PDF file, it processes the contents of the wiki page and generates the appropriate PDF syntax. This translation in 1.9.x is performed with the PDFlib library (in the lib/pdflib folder) For images, function img() in pdflib.php is where images are opened and processed. > > In 1.10, the translation is performed by the fpdf library http://fpdf.org . I have had more success with 1.10 PDF generation than with 1.9. > > Gary Well the file where the images are is visible with direct link without login in. Just does not work. Any other ideas?