Sample: how to add text edit field in PDF form
document generated using PDFDoc Scout library
Download example source code: pdfdocscout_example_text_boxs.zip
(11, 7 KB)
Screenshot (view produced
pdf):
' create PDFDoc object
Set PDFDoc = CreateObject("PDFDocScout.PDFDocument")
' initialize library
PDFDoc.InitLibrary "demo", "demo"
' set output filename for PDF document
PDFDoc.OutputFileName = "pdfdocscout_example_text_boxs.pdf"
' automatically open generated PDF document in default PDF viewer application
PDFDoc.AutoOpenGeneratedPDF = true
' starts PDF document generation
PDFDoc.BeginDocument
' add textbox
Set EditField = PDFDoc.Page.AddEdit ("DemoTextBox",
100, 220, 150, 230)
EditField.Text = "DemoTextBox"
' close pdf document generation
PDFDoc.EndDocument
' disconnect from library
Set PDFDoc = Nothing
Download example source code: pdfdocscout_example_text_boxs.zip
(11, 7 KB)