PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

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

 
Dorwol
User
Topic Author
Posts: 274
Joined: Mon Aug 04, 2008 5:04 pm

How to detect/skip empty scanned pages?

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: 680
Joined: Thu Jun 28, 2007 8:42 am

Re: How to detect/skip empty scanned pages?

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
Topic Author
Posts: 274
Joined: Mon Aug 04, 2008 5:04 pm

Re: How to detect/skip empty scanned pages?

Mon Jun 19, 2017 6:50 pm

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

Re: How to detect/skip empty scanned pages?

Mon Jun 19, 2017 7:19 pm

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

Re: How to detect/skip empty scanned pages?

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.

Who is online

Users browsing this forum: No registered users and 2 guests