Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Page Darkness
  FAQ FAQ  Forum Search   Register Register  Login Login

Page Darkness

 Post Reply Post Reply
Author
Message
bb46970 View Drop Down
Team Player
Team Player


Joined: 06 Mar 06
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote bb46970 Quote  Post ReplyReply Direct Link To This Post Topic: Page Darkness
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
bb46970 View Drop Down
Team Player
Team Player


Joined: 06 Mar 06
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote bb46970 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store