Prepare PDF Document
/documents/pdf/prepareimport io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Object provider = ; // Object | Token provider id
Object certificate = ; // Object | Certificate in base64 format
Object certLabel = ; // Object | Certificate Label
Object reason = ; // Object | Signing reason
Object location = ; // Object | Signing location
Object file = ; // Object | PDF File to be signed
Object timestamp = ; // Object | Check this if you need to add timestamp to the PDF file
Object signatureFieldName = ; // Object | Signature Field Name
Object signaturePage = ; // Object | Signature page, -1 for last page
Object startX = ; // Object | Signature location, top left
Object endX = ; // Object | Signature location, bottom left
Object startY = ; // Object | Signature location, top right
Object endY = ; // Object | Signature location, bottom right
try {
inline_response_200 result = apiInstance.documentsPdfPreparePost(provider, certificate, certLabel, reason, location, file, timestamp, signatureFieldName, signaturePage, startX, endX, startY, endY);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#documentsPdfPreparePost");
e.printStackTrace();
}
}
}Parameters
Name
Description
Responses
Status: 200 - Successful response
Status: 400 - Validation error
Status: 410 - Unable to prepare the document
Status: 500 - Internal Server Error
Example
Last updated