Print Page | Close Window

AddImageFromFile, Slow for some TIFs

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=1529
Printed Date: 14 Nov 25 at 5:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddImageFromFile, Slow for some TIFs
Posted By: PaladinTodd
Subject: AddImageFromFile, Slow for some TIFs
Date Posted: 05 Aug 10 at 6:15PM
I've got a routine that adds an image to a PDF. The routine works just great most of the time but occasionally, a TIF file comes along that takes a very long time to process (say 20 seconds per page). Other TIF files add OK, multipage TIF files work, just some TIF files have trouble. Anybody have an idea on what could be in the TIF to cause the problem? The file size of the problem TIF is small - only 171 KB.

Code seems straight-forward:
this.o.SetMeasurementUnits(0)        && Pixels
this.o.SetOrigin(1)                    && Top Left
this.o.CompressImages(1)
this.ImageID = this.o.AddImageFromFile(tFile, tPage)



Replies:
Posted By: PaladinTodd
Date Posted: 05 Aug 10 at 6:55PM
Just a note - I've tried it with Compression 1 and Compression 0 - doesn't seem to make a difference. 



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