Problem generate PDF from article with image .png

Phoca PDF - creating PDF documents in Joomla! CMS
astravouxhall83
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Feb 2014, 18:37

Problem generate PDF from article with image .png

Post by astravouxhall83 »

Hello,
I have a problem with the component Phoca PDF.
Inside of my articles on Joomla! there are images in .png for transparency requirements of the fund. But when I go to generate the PDF does not work and I do not generate the file, I tried it with images .gif and instead runs quietly, even with pictures .jpg. But I need that I work with images in .png as I said, can you help me solve this problem?!

Thank you very much!

Joomla version: 2.5.18
Phoca PDF version: 2.0.7
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem generate PDF from article with image .png

Post by Jan »

Hi, see important notice here:
https://www.phoca.cz/phocapdf

PDF is not like HTML, many features are not valid for the PDF document. I think, the used pdf library is not able to produce transparent pngs, really not sure, but I think there is no such feature :idea:

Jan
If you find Phoca extensions useful, please support the project
astravouxhall83
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Feb 2014, 18:37

Re: Problem generate PDF from article with image .png

Post by astravouxhall83 »

I have developed a php script that regenerates me the image format .png on article in format .gif which is fine for the generation of the PDF. But I would understand how to put this script and where in the code that generates the PDF.
Can you help me? it is very important to me!

thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem generate PDF from article with image .png

Post by Jan »

Hi, you can do it per content plugin, you can enable plugin support in Phoca PDF content plugin - so then the content plugins will be translated to content output - but of course, it is limited (html - x - pdf)

Jan
If you find Phoca extensions useful, please support the project
Post Reply