Do you own a Quick PDF Library 7 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 8 today!

Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Add drop down form fields to my PDF

Question

How do I add drop down form fields to my PDF?

Answer

Adding a drop down list to a form field using the NewFormField function in Quick PDF Library is easy. Here is some sample code:

int FieldID = QP.NewFormField("DropDown", 5);
QP.SetFormFieldBounds(FieldID, 100, 500, 200, 20);
QP.AddFormFieldSub(FieldID, "Option 1");
QP.AddFormFieldSub(FieldID, "Option 2");
QP.AddFormFieldSub(FieldID, "Option 3");
QP.SaveToFile("dropdown.pdf");

© 2012 Debenu. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum