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: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

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

How to detect/skip empty scanned pages?

Post by Dorwol » Tue Jun 06, 2017 7:16 pm

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

Because I must skip empty pages in a scan process.

Lzcat - Tracker Supp
Site Admin
Posts: 711
Joined: Thu Jun 28, 2007 8:42 am

Re: How to detect/skip empty scanned pages?

Post by Lzcat - Tracker Supp » Thu Jun 08, 2017 10:21 am

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: 278
Joined: Mon Aug 04, 2008 5:04 pm

Re: How to detect/skip empty scanned pages?

Post by Dorwol » Mon Jun 19, 2017 6:50 pm

For Scanning I use xcscan40 from "PDF-XChange Pro SDK 6".

Dorwol
User
Posts: 278
Joined: Mon Aug 04, 2008 5:04 pm

Re: How to detect/skip empty scanned pages?

Post by Dorwol » Mon Jun 19, 2017 7:19 pm

I also use "Image-XChange SDK 4"

Lzcat - Tracker Supp
Site Admin
Posts: 711
Joined: Thu Jun 28, 2007 8:42 am

Re: How to detect/skip empty scanned pages?

Post by Lzcat - Tracker Supp » Tue Jun 20, 2017 6:29 am

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