Page 1 of 1

pdflib - problem with opening gifs

Posted: Thu Sep 11, 2003 9:28 am
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

Posted: Thu Sep 11, 2003 11:57 am
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