Read/Extract 1st, 2nd, and Last Page?

Read/Extract 1st, 2nd, and Last Page?

Postby bollingm@saic.com » Thu Jun 05, 2008 4:50 am

I am reading and extracting data from the first two pages of documents. I now also need to run a search on the last page as well.

My current IDF looks like this:
BEGIN FIELD
NAME Page1
FORMID 1
COORDS 0:0 0:0 0:-1 0:-1
ENGINE FULLPAGE
# The ALLTEXT option attempts to retrieve all the text in the field, including for example small
# pieces of isolated text and text around logos.
FULLPAGEOPTIONS ALLTEXT
SPACES YES AUTO
CONFIDENCE 3
CLASSIFIER USA_MACHINETYPE_ALPHANUM VOTER
PAGE 1
#PAGEROTATE AUTO
BLOBREMOVE 5 0 0 0 0 0
END


BEGIN FIELD
NAME Page2
FORMID 1
COORDS 0:0 0:0 0:-1 0:-1
ENGINE FULLPAGE
# The ALLTEXT option attempts to retrieve all the text in the field, including for example small
# pieces of isolated text and text around logos.
FULLPAGEOPTIONS ALLTEXT
SPACES YES AUTO
CONFIDENCE 3
CLASSIFIER USA_MACHINETYPE_ALPHANUM VOTER
PAGE 2
#PAGEROTATE AUTO
BLOBREMOVE 5 0 0 0 0 0
END

I run searched using SimpleSaerch passing the search params and strPageOptions which currently are

strPageOptions = "Page1|Page2"

How would I also read/extract from the last page?

Thanks

MikeB.
bollingm@saic.com
Participant
 
Posts: 380
Joined: Wed Dec 06, 2006 4:50 pm

Postby stephen.bottomley@kofax.com » Mon Jun 09, 2008 1:18 am

Hi Mike,

You could add a field which looks exactly as the existing fields, but instead with the following parameters:

NAME LastPage
PAGE -1

An argument of "-1" for the PAGE parameter means "one page from the end of the document", i.e. the last page in this case.

Be aware that on a 1 or 2-page document, "LastPage" will be the same as an existing page, and you will end up reading that page twice!

To get around this, you could add a dummy registration field between Page2 and LastPage which attempts to register on page 3 of the image. If this is successful, then do the LastPage read; otherwise, if it fails, do not do the LastPage read.
Stephen Bottomley
Senior Product Specialist
Tel: +44 (0)1223 226012
stephen.bottomley@kofax.com
Participant
 
Posts: 675
Joined: Mon Jul 11, 2005 8:31 am
Location: Cambridge


Return to Indicius General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests