Print Page | Close Window

Image quality settings in RenderToFIle

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=2390
Printed Date: 27 Apr 26 at 5:15AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Image quality settings in RenderToFIle
Posted By: francescogro
Subject: Image quality settings in RenderToFIle
Date Posted: 29 Aug 12 at 5:11PM
Hello, I have a problem..
I need to convert a PDF file to TIFF images, keeping the size as low as possibile.
With an older library, I used to set options like greyscale images (instead of RGB), just 4 bits of color depth..
Can I set these options in QuickPdf? I didn't find anything..
Thanks a lot




Replies:
Posted By: Ingo
Date Posted: 29 Aug 12 at 7:57PM
Hi Francesco!

Have a look in the online reference...
There are all options for RenderPageToFile listed:
http://www.quickpdflibrary.com/help/quickpdf/RenderPageToFile.php
There's a "memory smart" DARenderPageToFile, too ;-)
I think a few tries from your side and you'll have it.

Cheers and welcome here,
Ingo



Posted By: AndrewC
Date Posted: 30 Aug 12 at 8:04AM
QPL can currently only output 24bit LZW TIFF's or 1 bit Group 4 TIFF's.  There are no other options currently available.  I would suggest using a library such as LibTIFF to convert and downscale the image to the required quality.  Another option is to use GDI+ directly to perform the conversion.  

There a many different types conversion filters and parameters to support and this is better handled with a quality graphics library such as GDI+ or LibTIFF.

Andrew.


Posted By: francescogro
Date Posted: 04 Sep 12 at 11:44AM
Thanks.. 

@Ingo: I usually look in the Reference Manuals before asking in forums.. I just didnt' find anything.

@AndrewC: sadly, GDI+ crashes on WinXp and Win2003 server while using the bitmap.save method. I will try some other components..

By the way, it's weird QP doesn't give more exporting options.. :(


Posted By: AndrewC
Date Posted: 04 Sep 12 at 12:32PM

We have many customers using GDI+ with Windows XP and Server 2003 without problems.

GDI+ on XP doesn'tt support all available TIFF formats.  G4 Tiff export is only available when using GDI+ with Vista, XP, Server 2008.

If you posted the code you are using as well as the PDF you were trying to export to a BMP file then we might be able to work out why it is crashing ?  Which version of QPL were you using ?

It might be easiest to create a support ticket to  http://www.quickpdflibrary.com/support/support-query.php - http://www.quickpdflibrary.com/support/support-query.php  and then attach the files when you get a ticket number.

Quick PDF Library can export to 10 different formats.  QPL is primarily a PDF library and not a specialised graphics library.   If we wanted to support every different type of image format, type, dithering mode etc then it would require a lot of work and customers would be continually asking for more complex options.  GDI+ doesn't support all the required options either.  We also need to keep the overall size of the library down.  If we had to link in with LibTIFF, LibPNG, LibJPEG ... then the library would be much larger.

Andrew



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