Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I create an editable text field in the PDF document?

0
Posted

How can I create an editable text field in the PDF document?

0

Use AddEditBox method. Set PDF = CreateObject(“PDFCreatorPilot.PDFDocument4”) PDF.SetLicenseData “demo”, “demo” PDF.AddEditBox 20, 35, 120, 50, “ed1” PDF.AnnotUnicodeText = “Enter text here…” PDF.ControlBackColor = &HDDCCFF PDF.ControlTextAlign = 1 ‘taCenter PDF.AddEditBox 20, 65, 120, 80, “ed2” PDF.AnnotUnicodeText = “password” PDF.EditBoxMaxLength = 8 PDF.IsPasswordEditBox = true PDF.ControlTextAlign = 2 ‘taRight PDF.ControlUnicodeHint = “This is the hint for edit” PDF.AddEditBox 20, 95, 220, 170, “ed3” PDF.AnnotUnicodeText = “Multiline edit box” PDF.ControlTextAlign = 1 ‘taCenter PDF.ControlVerticalAlign = 0 ‘vaTop PDF.IsMultilineEditBox = true PDF.ControlFont = PDF.AddFont(“Georgia”, false, false, false, false, 1) ‘FontCharset.fcDefault PDF.ControlFontSize = 14 PDF.ControlTextColor = &HFF00CC PDF.AddEditBox 20, 185, 120, 200, “ed4” PDF.AnnotUnicodeText = “No border here” PDF.ControlShowBorder = false PDF.SaveToFile “test.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123