pdflib - problem with opening gifs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ybi
Forum Newbie
Posts: 6
Joined: Thu Sep 11, 2003 9:28 am
Location: Germany

pdflib - problem with opening gifs

Post by ybi »

hi everyone,

im using PDFLib Version 4.0.2. If I try opening gif files by using the pdflib function 'pdf_open_image_file' some gifs can't be opened although the path of all gifs is the same. I guess, that something is wrong with these gifs but can't find out!!!

Please help me out - im frustrated after spending a hole day finding a solution!!

many greetings

ybi
ybi
Forum Newbie
Posts: 6
Joined: Thu Sep 11, 2003 9:28 am
Location: Germany

Post by ybi »

Still without knowing why this "gif error" occurs, I just converted all my gifs to jpeg (more then 2000!!!) and now it works
first I used:

Code: Select all

<?php
// $pdf_resource is a reference to a pdf document I've created
// gif is the file type to open
// $filename is the path and the filename of the image I want to open
php_open_image_file($pdf_resource,'gif',$filename);
?>
now I use:

Code: Select all

<?php
// with file type jpg everything is fine!!!
php_open_image_file($pdf_resource,'jpg',$filename);
?>
But I'm still wondering what's the reason for this strange behaviour of that function.

many greetings
ybi
Post Reply