XML Sample

XML structure for example with <DigSig> fields.
<DigSig> means the signature fields are already set in the origin PDF file

XML Sample
<ESign>
 <Signatures>
   <DigSig>
     <SignatureType>1</SignatureType> <!-- click signature / digital stamp -->
     <FieldName>Signature1</FieldName>
     <Mandatory>1</Mandatory>
   </DigSig>
   <DigSig>
     <SignatureType>2</SignatureType> <!-- html-signer signature-->
     <FieldName>Signature2</FieldName>
     <Mandatory>1</Mandatory>
   </DigSig>
   <DigSig>
     <SignatureType>3</SignatureType> <!-- pad signature -->
     <FieldName>Signature3</FieldName>
   </DigSig>
   <DigSig>
     <SignatureType>4</SignatureType> <!-- app / QR code signature -->
     <FieldName>Signature4</FieldName>
   </DigSig>
 </Signatures>
 <PDF>...</PDF> <!-- fill in the base64 encoded PDF file here -->
</ESign>


XML structure for example with <Placeholder> fields.
<Placeholder> means the signature fields are set using a placeholder in the document

XML Sample
<ESign>  
    <Signatures>
		<Signature>
			<Placeholder>Signatur 1</Placeholder> <!-- the document contains the placeholder "Signatur 1". A signature field is placed at this position in the document -->
			<Width>6</Width>
			<Height>3</Height>
			<Offset_X>0</Offset_X>
			<Offset_Y>-1</Offset_Y>
			<Mandatory>1</Mandatory>
		</Signature>
		<Signature>
			<Placeholder>Signatur 2</Placeholder>
			<Width>6</Width>
			<Height>3</Height>
			<Offset_X>0</Offset_X>
			<Offset_Y>-1</Offset_Y>
			<Mandatory>1</Mandatory>
		</Signature>
		<Signature>
			<Placeholder>Signatur 3</Placeholder>
			<Width>6</Width>
			<Height>2</Height>
			<Offset_X>0</Offset_X>
			<Offset_Y>-1</Offset_Y>
			<Mandatory>1</Mandatory>
		</Signature>
		<Signature>
			<Placeholder>Signatur 4</Placeholder>
			<Width>6</Width>
			<Height>2</Height>
			<Offset_X>0</Offset_X>
			<Offset_Y>-1</Offset_Y>
			<Mandatory>1</Mandatory>
		</Signature>
	</Signatures>
  <PDF>...</PDF> <!-- fill in the base64 encoded PDF file here -->
</ESign>


*) <SignatureType> 
This optional tag defines the way, how to sign the field.
The available values are:
0 = stamp data (text/image) without signature
1 = digital stamp (signature with user certificate instead of hand-written signature)
2 = html-signer signature only
3 = pad signature only
4 = app signature only (QR code)
If no signature type is defined, a selection window appears. The signer can choose between following types: StepOver signature pad OR one of our apps OR HTML-signer (with a pen or your finger on your mobile device)


Test documents for download:

DigSigExample.xml

PlaceholderExample.xml


For more XML tags and functionality see /wiki/spaces/PESO/pages/79200348.