Print Page | Close Window

Page Darkness

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=1461
Printed Date: 19 Jan 26 at 4:55AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Page Darkness
Posted By: bb46970
Subject: Page Darkness
Date Posted: 30 May 10 at 5:00AM
Dosadi has a dll for scanning documents into PDFs.  As part of the scanning, it will measure the overall page darkness and, based upon a specified threshold percent, assume that a page is blank, and remove those pages.  Does QuickPDF have a way of determining the page darkness for an existing PDF?  I want to process existing PDFs and identify pages that may be blank.

Thanks,

David



Replies:
Posted By: Ingo
Date Posted: 30 May 10 at 7:09PM
Hi David!

"Does QuickPDF have a way of determining the page darkness for an existing PDF?"
Short answer: No ;-)

But... You could do a textextration AND a search for image objects. If both results are negative then the page should be blank?

Cheers, Ingo



Posted By: bb46970
Date Posted: 30 May 10 at 11:41PM
Ingo,

The PDFs are scanned; so, every page is an image, even if it is a blank page (blank image).  Any suggestions on measuring each pixel in the image to determine how what percentage of the pixels are not white or close to white?

Thanks,

David


Posted By: Ingo
Date Posted: 31 May 10 at 6:34AM
Hi David!

You can check each pixel regarding the rgb-value ...
If have it in one of my codes but not yet accessable.
The other point of view is: Checking megabytes of pixels lasts a long time.
My idea: Make something like a big thumbnail of each page and check these pixels ;-)

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