How to detect/skip empty scanned pages?

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

How to detect/skip empty scanned pages?

Post by Dorwol »

Hi,
how can I detect if a scanned page is completely empty?

Because I must skip empty pages in a scan process.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: How to detect/skip empty scanned pages?

Post by Lzcat - Tracker Supp »

Hi Dorwol.
Can you be more specific?
We will need what SDKs you are using and on which step you need to detect this.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: How to detect/skip empty scanned pages?

Post by Dorwol »

For Scanning I use xcscan40 from "PDF-XChange Pro SDK 6".
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: How to detect/skip empty scanned pages?

Post by Dorwol »

I also use "Image-XChange SDK 4"
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: How to detect/skip empty scanned pages?

Post by Lzcat - Tracker Supp »

Hi Dorwol.
If you are using "Image-XChange SDK 4" you have full control over image (before placing it to pdf file).
You can examine image data using IMG_PageLockBlock/IMG_PageLockBlock if you need some custom logic.
For simple case (if you scanner produce clean white images) you may use IMG_PageCountColors to make sure that page is solid, and use IMG_PageGetPixel to check solid color.
HTH.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply