Hello everyone!

The reason I am writing to you regards the creation of pdf forms with the 
iTextSharp library. Despite having read many articles about this matter, as 
well as consulted several developers, I have not been able to resolve my issue. 
I hope some of you could at least point me in the right direction.

To get to the point - my website collects user input from various textboxes. 
One of them, however, can be up to 60000 characters in length. All the user 
input compiles in the pdf to constitute a letter, with the abovementioned 
textbox being the main body of the letter.
The pdf template has been created with Acrobat. All fields are set to extend 
vertically to fit in text, but this is sadly not the case. If more characters 
are entered by the user in the main body of the letter (one of the textboxes), 
only so much of the text is visible, since only one page is created. At the 
bottom of the letter, however, there has to be the sender's address (obtained 
from another textbox), and this should only be on the last page of the pdf file.
The issue now is how to produce such a multipage document based on the length 
of the main body textbox if different template should be used for the last than 
for other pages.
I am trying not to hardcode all the possible textbox lengths in code behind, as 
this would be very inefficient.
What method would you recommend? I'm perhaps thinking of splitting the main 
body textbox string in substrings, and then based on the number of substrings, 
where each would fill out one page, generating a new page in pdf.

Any help is greatly appreciated.

Thanks

David

Sent from my Windows Phone
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to