TCPDF and GD2 compatibility
Posted: 14 Jun 2013, 12:27
Hi,
I developed a component, which stores content in its own tables, not in Joomla's #__content table. I got a request from a client to save the displayed text into pdf.
I decided to use Phoca PDF for this purpose because of its flexibility and configurability. So I created new plugin for Phoca PDF to provide bridge to my component. For the simple cases everything works fine.
What I mean by simple cases:
- html text only
- html text and image files
In some cases I need to display generated images. I mean I use PHP GD2 library to draw images, for example charts. PDF cannot be displayed with these generated images. In IE I get the following error message: "TCPDF ERROR: [Image] Unable to get image."
Have you ever bumped into this problem or something similar?
Do you have experince with TCPDF and GD2 compatibility?
Any other suggestion is welcome. Thanks.
I developed a component, which stores content in its own tables, not in Joomla's #__content table. I got a request from a client to save the displayed text into pdf.
I decided to use Phoca PDF for this purpose because of its flexibility and configurability. So I created new plugin for Phoca PDF to provide bridge to my component. For the simple cases everything works fine.
What I mean by simple cases:
- html text only
- html text and image files
In some cases I need to display generated images. I mean I use PHP GD2 library to draw images, for example charts. PDF cannot be displayed with these generated images. In IE I get the following error message: "TCPDF ERROR: [Image] Unable to get image."
Have you ever bumped into this problem or something similar?
Do you have experince with TCPDF and GD2 compatibility?
Any other suggestion is welcome. Thanks.