Jump to content

CPDF_import_jpeg


gamer10101

Recommended Posts

I am having a big problem with cpdf_import_jpeg. It just doesn't seem to work. After days of googling to no success, I found this forum so decided to try my luck here. The main problem is that the image doesn't show up. I have tried everything possible but must be missing something simple. My code:

 

cpdf_import_jpeg($cpdf, "test.jpg", 300, 50, 0.0, 0.0, 300.0, 0.0, 0.0, 0, 1);

 

I tried both 1 and 0 for gsave but no dofference. I even tried $result=cdpf_import_jpeg(... and displaying $result to see if there was an error and it seems to be fine as it returns 1. I don't know where to go from here. Any advice?

 

specs:

PHP 5.2.6

apache 2.2

Clibpdf installed correctly and working according to phpinfo() as well as a full pdf page being created properly (except the jpeg)

GD 2.1.9 (so cpdf_place_inline_image is out of the question, as it only works with 1.3, if not then something doesn't work with my GD because the command cpdf_place_inline_image throws an "undefined function" error)

Link to comment
https://forums.phpfreaks.com/topic/157512-cpdf_import_jpeg/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.