Print Page | Close Window

TIFF files loading fail with AddImageFromFile

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1561
Printed Date: 02 Aug 25 at 1:36PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: TIFF files loading fail with AddImageFromFile
Posted By: bneau
Subject: TIFF files loading fail with AddImageFromFile
Date Posted: 06 Sep 10 at 8:33PM
Hi,
 
I'm currently experiencing a weird issue with some TIFF files. While most TIFF files I've been using load well with QuickPDF's AddImageFromFile function, some TIFF files (which are rendered fine using GDI) cannot be opened with AddImageFromFile. It also either fails (i.e. returns 0) or freezes at this point.
 
By the time I'm posting this topic, I cannot attach a problematic TIFF file but I will do it ASAP. I have now uploaded a buggy tiff file on rapidshare: see http://rapidshare.com/files/417488285/buggy_tiff.tif - http://rapidshare.com/files/417488285/buggy_tiff.tif
It seems to me as opening any multipages 300 DPI bitonal TIFF (CCIT 4 Compression) and rotating one of the pages using the default Windows TIFF renderer file is enough to fashion the file in such a way QuickPDF won't be able to use it.
 
Regarding the technical stuff, we're using QuickPDF 7.19 both from in .NET (C#) projects and JAVA projects. The bug seems to be independant of the hosting machine OS (it happens both on Windows XP SP3 and Windows Server 2008).
But w/ .NET, it freezes (in a WCF REST web service) while in JAVA (desktop application), it simply fails (returns 0).
 
At the moment, the only workaround we've found is to temporarily convert the image to a (supposedly) safe format like PNG before passing it to AddImageFromFile, which is pretty unconvenient, resources-consuming, error-prone and making our code less maintainable.
 
As a side note, it's also pretty annoying that the TIFF page parameter and "force GDI" parameter occupy the same parameter slot on the AddImageFromFile method.
 
So, (sorry for these newbie questions)
A/ Is this issue known?
B/ Is there any kind of public issue-tracker for QuickPDF?
C/ What is the average time for fixing a bug once the development team has been able to reproduce it? (aka Should we wait for the next release, or as my company is a registered customer of QuickPDF, can we get a hotfix sooner?)
 
Thanks for your time and consideration.
 
Best Regards,
Benjamin Neau



Replies:
Posted By: bneau
Date Posted: 06 Sep 10 at 8:41PM

Just tried QuickPDF 7.21.

It does fix the problem.
 
It's just awesome.
 
I take it it's "Improvements to handling of CCITT images" ;-)
 
Thanks.
 
It was a mistake. I deduced from no freeze that it was gone, but in fact, it still fails at loading some TIFF files...
 
So the problem is still happening and I'm still investigating.


Posted By: Ingo
Date Posted: 07 Sep 10 at 7:37AM
Hi Benjamin!

This is hard stuff i fear.
I've made the same experiences like you did.
The tiff format have wide spreaded convention - so
i've converted your tiff to other tiff-formats (lzw and
some other ones) but it doesn't matter what i choose
i've always got a black image...
After rotating the image and saving as jpg i could
work on it like you can.
You should upload the tiff on the official support pages.
There's an option to do this. The support team won't
take a rapidshare-file.
Please keep in mind: This here is only a user-user-forum.

Cheers and welcome here,
Ingo



Posted By: bneau
Date Posted: 07 Sep 10 at 6:23PM
Hey Ingo,
 
Thanks for your valuable input. One thing tho, I couldn't find the option to upload a file.
 
Kind regards,
Benjamin


Posted By: Ingo
Date Posted: 07 Sep 10 at 6:52PM
Hi!

Why not try http://www.quickpdf.org
There you can click on "QuickPDF Homepage":
http://www.quickpdflibrary.com/
There is a support-menu,
take "ask a question"...
and then "Technical support".
All in one:
http://www.quickpdflibrary.com/support/support-query.php

Cheers, Ingo





Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk