Click here to Skip to main content
15,851,387 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I am using following code to create a pdf using vb.net

VB
Private Sub FillForm()

    Dim pdfTemplate As String = "c:\Temp\PDF\fw4.pdf"
    Dim newFile As String = "c:\Temp\PDF\Final_fw4.pdf"

    Dim pdfReader As New PdfReader(pdfTemplate)
    Dim pdfStamper As New PdfStamper(pdfReader, New FileStream( _
        newFile, FileMode.Create))

    Dim pdfFormFields As AcroFields = pdfStamper.AcroFields

    ' set form pdfFormFields

    ' The first worksheet and W-4 form
    pdfFormFields.SetField("f1_01(0)", "John")
    pdfFormFields.SetField("f1_02(0)", "Smith")

 pdfStamper.FormFlattening = True

            ' close the pdf
            pdfStamper.Close()


can you please tell me how can I change the font size of textbox "f1_01(0)" and "f1_01(0 )"?
Posted
Updated 28-Sep-11 14:31pm
v2
Comments
Sergey Alexandrovich Kryukov 28-Sep-11 18:21pm    
What PDF library are you using? is it iTextSharp? Tag it! Ask your question on their support forum.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900