Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit 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");

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum