I'm writing a DB reporting class that extends org.apache.fop.apps.Driver
and fires SAX events to the Drivers ContentHandler (FOTreeBuilder).

I have a method that produces the correct OMR mark with SAX events when the
page number is passed in as a parameter.  The problem with this is that I
need the current page number passed into this method as the page is
processed?  (callbacks?)

What I need is a tag that performs a lot like <page-number>.  The OMR mark
is just the page number in binary (well 85% of it is).  The last page has
an extra mark to say it's the last page, etc.  I need some help getting
stared on creating this tag.  It requires access to the page number and has
to know when it gets to the last page.  The mark is a 1 cell by 10 row
table (picture a real simple verticle barcode) so I need help with using
the Table Area too.

Thanks,

JohnPT


More info:

I'm generating PDF's ( you probably guessed that one :)

OMR is just a vertical table with one column and 10 rows.  The table is
placed 1/4 inch from either edge of the page.  Mininum mark sizes are 0.01
inch high and 0.1 inch long.

The first cell is the GRV (Gate Read Verify, ie:it's always marked).  The
second cell is not used.  The third cell is marked when the last page is
reached.  The remaining cells count the page number in binary.

These marks are used when printing in bulk to keep documents grouped.  They
can also be used to print the first page with perforated paper and the rest
on plain paper, tell the operator a page is missing, etc.  Picture keeping
a run of 70,000 1-5 page reports organized.







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to