Skip to end of metadata
Go to start of metadata

Declaration

Delphi

function GetPdfFormFieldsXml : PAnsiChar; stdcall;

ActiveX

HRESULT _stdcall GetPdfFormFieldsXml([out, retval] BSTR* xmlString);

 

Description

This function is used to read the formfield values from the loaded document. The data is represented as XML, you get the name and the value of each field.


Return value

The return value is an XML which contains all formular elements with their values.

Sample output of GetPdfFormFieldsXml
<?xml version="1.0" encoding="UTF-8"?>
<FormFields>
	<Text1> 
		<Value>John Doe</Value> 
	</Text1>
	<Text2> 
		<Value>Mainstreet </Value> 
	</Text2>
	<RadioButton5>
		<Value>No</Value>
	</RadioButton5>
	<CheckBox4> 
		<Value>Off</Value> 
	</CheckBox4>
	<CheckBox3> 
		<Value>Yes</Value> 
	</CheckBox3>
	<Optionsfeld1> 
		<Value>Ja</Value> 
	</Optionsfeld1>
</FormFields>

 

Sample 

C#
// save formfield details into a xml
          
string fromfields = SignAPIv4.GetPdfFormFieldsXml();
  • No labels