brian.mo...@thompsonmachinery.com brian.mo...@thompsonmachinery.com) writes:
> Does the field you have on your page three happen to share a name with a
field on any of the other pages?
> This may be an elementary question, but it's the first thing I thought of.
It could very well be possible. The forms I'm filling out programmatically I
obtain from the US government, and we know how competent they are J .
It appears that on all pages the 'total pages' field is labeled
txtTotalPages. (as obtained by enumerating the form fields via a:
foreach (KeyValuePair<string, iTextSharp.text.pdf.AcroFields.Item> de in
pdfReader.AcroFields.Fields) ), de.Key is equal to:
"topmostSubform[0].Page1[0].TXTTOTALPAGES[0]" (Page 1 in the first document)
"topmostSubform[0].Page2[0].TXTTOTALPAGES[0]" (Page 2 in the first document)
"topmostSubform[0].Page3Cont[0].txtTotalPages[0]" (Page 1 in the 2nd
document "page 3 continuation form")
If that's the problem, I certainly could edit Page 3 and change the
txtTotalPages to something else.. however, there are times when Page #3 will
'overflow' as well and I need to create a 'Page #4' as well (which is just
another copy of Page 3). so there is always the possibility I would have the
"same" field names in multiple page 3's depending on the overflow.
I will see how your included example works as well, since that may address
the problem of combining the documents when I have multiple page 3's. Thank
you for the feedback.
--MD
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php