Print Page | Close Window

Query attributes

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=2438
Printed Date: 25 Jan 26 at 6:09AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Query attributes
Posted By: moakley
Subject: Query attributes
Date Posted: 29 Oct 12 at 2:31PM
We are looking to render PDFs as TIFF files.  QuickPDF is unlikely to have been the source of the PDF.  In order to make better dicision about how to render is there a way to query PDF attributes by page for resolution and color depth?
Mike...



Replies:
Posted By: AndrewC
Date Posted: 01 Nov 12 at 3:03AM
That is a very complex question as there is no answer.

A PDF doesn't have a DPI setting as it mainly a vectorial format and not a bitmap.  A PDF doesn't have a colour depth.  With the use of PDF colourspaces a PDF can have many different colour depths.  A PDF can also have coloured annotations and stamps on top of the image.  

I assume you have scanned PDF's that you want extract the images from.  If so - this might make things a little easier.   

You should start with the following functions

http://www.quickpdflibrary.com/help/quickpdf/GetPageImageList.php - http://www.quickpdflibrary.com/help/quickpdf/GetPageImageList.php
http://www.quickpdflibrary.com/help/quickpdf/GetImageListItemIntProperty.php - http://www.quickpdflibrary.com/help/quickpdf/GetImageListItemIntProperty.php
http://www.quickpdflibrary.com/help/quickpdf/GetImageListItemDblProperty.php - http://www.quickpdflibrary.com/help/quickpdf/GetImageListItemDblProperty.php

It is impossible to give a 100% correct answer unless your PDF's come from the same system.

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