bnorwood wrote:
> I'm sure this has been answered before and that I'm just searching for the
> wrong thing.  Basically I am generating a printable version of an
> application that users fill out online. 

Is the online form a PDF? If so, I would reuse it.
Is the online form available on paper? If so, do you have
the original source that was printed?
If the answer is positive to any of the questions above,
you could create the empty form as a PDF and then stamp
the fields on that PDF using PdfStamper.

> The business folks want it to look
> very similar to the manual form, so I need to print out the value
> (preferably underlined and padded to a certain width) with the label
> directly beneath it.  Here is an image of what I'm looking to replicate:
> 
> http://www.nabble.com/file/p17937100/example_pdf_format.jpg 

That could be achieved with a table where you only draw
the top border of the cells.

> Can anybody point me in the right direction?  I tried using a 2 column
> table, with one cell having the value to print (ie address) have it
> underlined and padded right, then the cell below being top aligned and print
> the field label.  My biggest problem is that when I pad with spaces the text
> isn't underlined. Any help would be greatly appreciated.

You are using setUnderline with the Chunk? Why?
You should use PdfPCell.setBorder(Rectangle.TOP);
to draw the top border of each cell.

br,
Bruno

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to