Code Samples

Collection of sample code for common document production challenges

Code Samples Gallery

Convert XML to PDF

The code sample uses the API to convert XML to PDF using a template stored on the server. An XML string is sent to the Ecrion server and a PDF is received back.

Convert JSON to PDF

The code sample uses the API to convert JSON to PDF using a template stored on the server. A JSON is sent to the Ecrion server and a PDF is received back.

Merge Multiple Documents

The code sample uses the API to merge a document package stored on the server to a single PDF.

Convert XSL-FO to PDF

The code sample uses the API to convert XSL-FO to PDF. An XSL-FO string is sent to the Ecrion server and a PDF is received back.