Page 1 of 1
How to detect/skip empty scanned pages?
Posted: Tue Jun 06, 2017 7:16 pm
by Dorwol
Hi,
how can I detect if a scanned page is completely empty?
Because I must skip empty pages in a scan process.
Re: How to detect/skip empty scanned pages?
Posted: Thu Jun 08, 2017 10:21 am
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.
Re: How to detect/skip empty scanned pages?
Posted: Mon Jun 19, 2017 6:50 pm
by Dorwol
For Scanning I use xcscan40 from "PDF-XChange Pro SDK 6".
Re: How to detect/skip empty scanned pages?
Posted: Mon Jun 19, 2017 7:19 pm
by Dorwol
I also use "Image-XChange SDK 4"
Re: How to detect/skip empty scanned pages?
Posted: Tue Jun 20, 2017 6:29 am
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.