Loading...
 
Skip to main content

Features / Usability


PDF generation?

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

> 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=20Question could not be uploaded


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

> 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


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=20Question 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.orgQuestion . I have had more success with 1.10 PDF generation than with 1.9.

Gary

> 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=20Question 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.orgQuestion . 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?