PdfDocumentAddFormField(PdfFormField, Single, Boolean, Boolean, Single, Boolean, Boolean) Method
Adds a form field to this document at the given X and Y location in the PDF page where the last element rendering ended.
The location can be absolute in PDF page or relative as an offset from the position where the last element rendering ended.
Namespace: HiQPdfClientAssembly: HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 16.0.0
public void AddFormField(
PdfFormField formField,
float xPos,
bool xRelPos,
bool xRelToLeft,
float yPos,
bool yRelPos,
bool yRelToBottom
)
Public Sub AddFormField (
formField As PdfFormField,
xPos As Single,
xRelPos As Boolean,
xRelToLeft As Boolean,
yPos As Single,
yRelPos As Boolean,
yRelToBottom As Boolean
)
public:
void AddFormField(
PdfFormField^ formField,
float xPos,
bool xRelPos,
bool xRelToLeft,
float yPos,
bool yRelPos,
bool yRelToBottom
)
member AddFormField :
formField : PdfFormField *
xPos : float32 *
xRelPos : bool *
xRelToLeft : bool *
yPos : float32 *
yRelPos : bool *
yRelToBottom : bool -> unit
Parameters
- formField PdfFormField
- The form field to be added
- xPos Single
- The X position of the object in the PDF page where the last object was rendered
- xRelPos Boolean
- If this value is true the X position is relative to the left or right X coordinate of the last object rendered,
function of the next parameter value. If this value is false the X position is absolute in PDF page
- xRelToLeft Boolean
- If this value is true the X position is relative to left X coordinate of the last object rendered.
If this value is false the X position is relative to right X coordinate of the last object rendered
- yPos Single
- The Y position of the object in the PDF page where the last object was rendered
- yRelPos Boolean
- If this value is true the Y position is relative to the bottom or top Y coordinate of the last object rendered,
function of the next parameter value. If this value is false the Y position is absolute in PDF page
- yRelToBottom Boolean
- If this value is true the Y position is relative to bottom Y coordinate of the last object rendered.
If this value is false the Y position is relative to top Y coordinate of the last object rendered