Hi!
I have a PDF form that I need to fill.
Some of the text-fields are large, so I need to send a line break with my
text.
How can I do that?
This is the code Im using:
-----------------------------------------------------------------------
Dim pdfTemplate As String = Server.MapPath("TEMPLATE.pdf")
Dim newFile As String = Server.MapPath("Certificado.PDF")
'password
Dim password() As Byte
Dim Upassword() As Byte
password = System.Text.Encoding.ASCII.GetBytes("teste")
Upassword = System.Text.Encoding.ASCII.GetBytes("")
'Dim pdfwriter As PdfWriter
Dim pdfReader As New PdfReader(pdfTemplate, password)
Dim pdfStamper As New PdfStamper(pdfReader, New FileStream(newFile,
FileMode.Create))
pdfStamper.SetEncryption(Upassword, password,
PdfWriter.AllowPrinting, PdfWriter.STANDARD_ENCRYPTION_128)
Dim pdfFormFields As AcroFields = pdfStamper.AcroFields
pdfFormFields.SetField("DESCRIPTION1", "blablablablablalalabalalala
<need line break here> balblblablbalabl")
pdfStamper.FormFlattening = True
pdfStamper.Close()
-----------------------------------------------------------------------
Thanks in advance
Regards,
Cristina
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
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