Frequently Asked Question:
Hiding or deleting a form field does not seem to work.
I tried both hide and delete. Both reported success. However, I still see the text field caption in the resulting pdf. Does it delete or hide the object or just the data field?
n = GetFormFieldIndex(formvar)
x = Qp.DeleteFormField(n)
x = Qp.SetFormFieldVisible(n, 0)
The text field caption / border you are referring designed in the LiveCycle designer and is somehow attached to the XFA field in LiveCycle. Quick PDF Library currently only supports a subset of the LiveCycle XFA feature set.
So it is possible to hide the formfield text with QPL it is not possible to hide the label and border as these objects are part of the standard content stream. I believe it would require an Adobe SDK to be able to do what you want.