POST /api/v1/documents
Uses Auth0 bearer token(JWT) for authentication. For more information, see the authentication documentation.
Document Rendering Service (DRS) is a service which supports pdf, csv document generation. This document aims at details about the usage of service to generate pdf documents. In order to generate pdf using Document Rendering service, below are the set of inputs needed.
{ "template": "PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdGFibGUsIHRoLCB0ZCB7DQogICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7DQp9DQo8L3N0eWxlPg0KPC9oZWFkPg0KPGJvZHk+DQo8ZGl2IGlkID0gInBhZ2VIZWFkZXIiIHN0eWxlPSJoZWlnaHQ6MTBweDsiPg0KPGgyIHN0eWxlPSJ0ZXh0LWFsaWduOmNlbnRlciI+RGFpbHkgUmVwb3J0czwvaDI+DQo8L2Rpdj4NCjxoMz5BUEkgRG9jdW1lbnRhdGlvbjwvaDM+DQo8cD5QREYgUmVuZGVyaW5nIGRvY3VtZW50YXRpb24uPC9wPg0KPHRhYmxlIHN0eWxlPSJ3aWR0aDoxMDAlIj4NCiAgPHRyPg0KICAgIDx0aD5GaXJzdG5hbWU8L3RoPg0KICAgIDx0aD5MYXN0bmFtZTwvdGg+IA0KICAgIDx0aD5BZ2U8L3RoPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkppbGw8L3RkPg0KICAgIDx0ZD5TbWl0aDwvdGQ+DQogICAgPHRkPjUwPC90ZD4NCiAgPC90cj4NCiAgPHRyPg0KICAgIDx0ZD5FdmU8L3RkPg0KICAgIDx0ZD5KYWNrc29uPC90ZD4NCiAgICA8dGQ+OTQ8L3RkPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkpvaG48L3RkPg0KICAgIDx0ZD5Eb2U8L3RkPg0KICAgIDx0ZD44MDwvdGQ+DQogIDwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KIDxmb290ZXI+DQogIDxwPlBvc3RlZCBieTogQ2ltcHJlc3M8L3A+DQogIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateType": "handlebars" }Decoded template:
Daily Reports
API Documentation
PDF Rendering documentation.
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
John | Doe | 80 |
{ "template": "PCFET0NUWVBFIGh0bWw+DQo8c3R5bGU+DQp0aCB7DQogICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgYmxhY2s7DQogICAgICBib3JkZXItdG9wOiAzcHggc29saWQgYmxhY2s7DQogICAgICBoZWlnaHQ6IDUwcHg7DQogICAgfQ0KPC9zdHlsZT4JDQo8aHRtbD4NCjxib2R5Pg0KPGRpdiBpZCA9ICJwYWdlSGVhZGVyIiBzdHlsZT0iaGVpZ2h0OjEwcHg7Ij4NCjxoMiBzdHlsZT0idGV4dC1hbGlnbjpjZW50ZXIiPkRhaWx5IFJlcG9ydHM8L2gyPg0KPC9kaXY+DQo8aDM+QVBJIERvY3VtZW50YXRpb248L2gzPg0KPHA+UERGIFJlbmRlcmluZyBkb2N1bWVudGF0aW9uLjwvcD4NCnt7I3RhYmxlIHRhYmxlRGF0YX19e3svdGFibGV9fQ0KPC9ib2R5Pg0KPGZvb3Rlcj4NCiA8cD5Qb3N0ZWQgYnk6IENpbXByZXNzPC9wPg0KIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateContext": { "tableData": { "border": "1", "header": { "style": "font-family:verdana;text-align:center;", "columns": [ "First Name", "Last Name", "Eyecolor", "City" ] }, "body": { "style": "font-family:verdana;text-align:center;", "rows": [ [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ] ] } } }, "templateType": "handlebars" }Decoded template:
Response Pdf: response-2.pdf Sample 3 - Styling for column – colspan, color. To customize the table with colspan or color for particular column, below is the sample request. JSON request:Daily Reports
API Documentation
PDF Rendering documentation.
{{#table tableData}}{{/table}}
{ "template":"PCFET0NUWVBFIGh0bWw+DQo8c3R5bGU+DQp0aCB7DQogICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgYmxhY2s7DQogICAgICBib3JkZXItdG9wOiAzcHggc29saWQgYmxhY2s7DQogICAgICBoZWlnaHQ6IDUwcHg7DQogICAgfQ0KPC9zdHlsZT4JDQo8aHRtbD4NCjxib2R5Pg0KPGRpdiBpZCA9ICJwYWdlSGVhZGVyIiBzdHlsZT0iaGVpZ2h0OjEwcHg7Ij4NCjxoMiBzdHlsZT0idGV4dC1hbGlnbjpjZW50ZXIiPkRhaWx5IFJlcG9ydHM8L2gyPg0KPC9kaXY+DQo8aDM+QVBJIERvY3VtZW50YXRpb248L2gzPg0KPHA+UERGIFJlbmRlcmluZyBkb2N1bWVudGF0aW9uLjwvcD4NCnt7I3RhYmxlIHRhYmxlRGF0YX19e3svdGFibGV9fQ0KPC9ib2R5Pg0KPGZvb3Rlcj4NCiA8cD5Qb3N0ZWQgYnk6IENpbXByZXNzPC9wPg0KIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateContext":{ "tableData":{ "border":"1", "header":{ "style":"font-family:verdana;text-align:center;", "columns":[ "First Name", "Last Name", "Eyecolor", "City" ] }, "body":{ "style":"font-family:verdana;text-align:center;", "rows":[ [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ { "text":"Total", "style":"color:red", "colspan":2 } ] ] } } }, "templateType":"handlebars" }Decoded Template:
Response Pdf: response-3.pdf Sample 4 - Styling for Cells. Customize cells styling using below properties in the request. JSON request:Daily Reports
API Documentation
PDF Rendering documentation.
{{#table tableData}}{{/table}}
{ "template":"PCFET0NUWVBFIGh0bWw+DQo8c3R5bGU+DQp0aCB7DQogICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgYmxhY2s7DQogICAgICBib3JkZXItdG9wOiAzcHggc29saWQgYmxhY2s7DQogICAgICBoZWlnaHQ6IDUwcHg7DQogICAgfQ0KPC9zdHlsZT4JDQo8aHRtbD4NCjxib2R5Pg0KPGRpdiBpZCA9ICJwYWdlSGVhZGVyIiBzdHlsZT0iaGVpZ2h0OjEwcHg7Ij4NCjxoMiBzdHlsZT0idGV4dC1hbGlnbjpjZW50ZXIiPkRhaWx5IFJlcG9ydHM8L2gyPg0KPC9kaXY+DQo8aDM+QVBJIERvY3VtZW50YXRpb248L2gzPg0KPHA+UERGIFJlbmRlcmluZyBkb2N1bWVudGF0aW9uLjwvcD4NCnt7I3RhYmxlIHRhYmxlRGF0YX19e3svdGFibGV9fQ0KPC9ib2R5Pg0KPGZvb3Rlcj4NCiA8cD5Qb3N0ZWQgYnk6IENpbXByZXNzPC9wPg0KIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateContext":{ "tableData":{ "style":"width:100%", "header":{ "columns":[ "First Name", "Last Name", "Eyecolor", "City" ], "options":{ "width":[ "90%", "*", "5%" ] } }, "body":{ "style":"font-family:Verdana; color:green", "rows":[ [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ] ] } } }, "templateType":"handlebars" }Decoded Template:
Response Pdf: response-4.pdf Sample 5 - Styling for rows. Customize rows using styling properties as below. JSON request:Daily Reports
API Documentation
PDF Rendering documentation.
{{#table tableData}}{{/table}}
{ "template": "PCFET0NUWVBFIGh0bWw+DQo8c3R5bGU+DQp0aCB7DQogICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgYmxhY2s7DQogICAgICBib3JkZXItdG9wOiAzcHggc29saWQgYmxhY2s7DQogICAgICBoZWlnaHQ6IDUwcHg7DQogICAgfQ0KPC9zdHlsZT4JDQo8aHRtbD4NCjxib2R5Pg0KPGRpdiBpZCA9ICJwYWdlSGVhZGVyIiBzdHlsZT0iaGVpZ2h0OjEwcHg7Ij4NCjxoMiBzdHlsZT0idGV4dC1hbGlnbjpjZW50ZXIiPkRhaWx5IFJlcG9ydHM8L2gyPg0KPC9kaXY+DQo8aDM+QVBJIERvY3VtZW50YXRpb248L2gzPg0KPHA+UERGIFJlbmRlcmluZyBkb2N1bWVudGF0aW9uLjwvcD4NCnt7I3RhYmxlIHRhYmxlRGF0YX19e3svdGFibGV9fQ0KPC9ib2R5Pg0KPGZvb3Rlcj4NCiA8cD5Qb3N0ZWQgYnk6IENpbXByZXNzPC9wPg0KIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateContext": { "tableData": { "border": "1", "header": { "style": "font-family:verdana;text-align:center;", "columns": [ "First Name", "Last Name", "Eyecolor", "City" ] }, "body": { "style": "font-family:verdana; color:green;", "rows": [ [ "Anthony", "Conley", "brown", { "text":"Monument", "style":"color:red" } ], [ "Anthony", "Conley", "brown", { "text":"Monument", "style":"color:orange" } ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ] ] } } }, "templateType": "handlebars" }Response Pdf: response-5.pdf
{ "template":"PCFET0NUWVBFIGh0bWw+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdHlsZT4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGggew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgYmxhY2s7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlci10b3A6IDNweCBzb2xpZCBibGFjazsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiA1MHB4Ow0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3N0eWxlPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aHRtbD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJvZHk+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgaWQgPSAicGFnZUhlYWRlciIgc3R5bGU9ImhlaWdodDozMHB4OyI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGgyIHN0eWxlPSJ0ZXh0LWFsaWduOmNlbnRlciI+DQoJCQkJCQkJCSAgVGl0bGUvSGVhZGVyIG9mIHRoZSBEb2N1bWVudA0KICAgICAgICAgICAgICAgIC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NQmJkZ0VjYUNXN0FJWThFdFdJU3g0QWFJL2dmcEdIbWhQVVhmRndBQUFBQkpSVTVFcmtKZ2dnPT0iPg0KCQkJCQkJCQkgIDwvaDI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyN0YWJsZSB0YWJsZURhdGF9fXt7L3RhYmxlfX0NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9ib2R5Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8Zm9vdGVyPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHA+UG9zdGVkIGJ5OiBDaW1wcmVzczwvcD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzb21lb25lQGV4YW1wbGUuY29tPC9hPjwvcD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9mb290ZXI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvaHRtbD4=", "templateContext":{ "tableData":{ "border":"1", "header":{ "style":"font-family:verdana;text-align:center;", "columns":[ "First Name", "Last Name", "Eyecolor", "City" ] }, "body":{ "style":"font-family:verdana;text-align:center;", "rows":[ [ "Anthony", "Conley", "brown", "Monument" ], [ "Anthony", "Conley", "brown", "Monument" ], [ { "text":"Total", "style":"color:black", "colspan":2 } ] ] } } }, "templateType":"handlebars" }Decoded template:
Response Pdf: response-1.pdf Sample 2 - Styling header using pdf rendering options. JSON request:{{#table tableData}}{{/table}}Title/Header of the Document
{ "template":"PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdGFibGUsIHRoLCB0ZCB7DQogICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7DQp9DQo8L3N0eWxlPg0KPC9oZWFkPg0KPGJvZHk+DQoNCjxoMz5BUEkgRG9jdW1lbnRhdGlvbjwvaDM+DQo8cD5QREYgUmVuZGVyaW5nIGRvY3VtZW50YXRpb24uPC9wPg0KPHRhYmxlIHN0eWxlPSJ3aWR0aDoxMDAlIj4NCiAgPHRyPg0KICAgIDx0aD5GaXJzdG5hbWU8L3RoPg0KICAgIDx0aD5MYXN0bmFtZTwvdGg+IA0KICAgIDx0aD5BZ2U8L3RoPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkppbGw8L3RkPg0KICAgIDx0ZD5TbWl0aDwvdGQ+DQogICAgPHRkPjUwPC90ZD4NCiAgPC90cj4NCiAgPHRyPg0KICAgIDx0ZD5FdmU8L3RkPg0KICAgIDx0ZD5KYWNrc29uPC90ZD4NCiAgICA8dGQ+OTQ8L3RkPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkpvaG48L3RkPg0KICAgIDx0ZD5Eb2U8L3RkPg0KICAgIDx0ZD44MDwvdGQ+DQogIDwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KIDxmb290ZXI+DQogIDxwPlBvc3RlZCBieTogQ2ltcHJlc3M8L3A+DQogIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateType":"handlebars", "pdfRenderingOptions":{ "format":"A4", "header":{ "height":"15mm", "contents":"Response Pdf: response-2.pdfHeader Set in json{{page}}/{{pages}}" }, } }
{ "template": "PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdGFibGUsIHRoLCB0ZCB7DQogICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7DQp9DQo8L3N0eWxlPg0KPC9oZWFkPg0KPGJvZHk+DQo8ZGl2IGlkID0gInBhZ2VIZWFkZXIiIHN0eWxlPSJoZWlnaHQ6MTBweDsiPg0KPGgyIHN0eWxlPSJ0ZXh0LWFsaWduOmNlbnRlciI+RGFpbHkgUmVwb3J0czwvaDI+DQo8L2Rpdj4NCjxoMz5BUEkgRG9jdW1lbnRhdGlvbjwvaDM+DQo8cD5QREYgUmVuZGVyaW5nIGRvY3VtZW50YXRpb24uPC9wPg0KPHRhYmxlIHN0eWxlPSJ3aWR0aDoxMDAlIj4NCiAgPHRyPg0KICAgIDx0aD5GaXJzdG5hbWU8L3RoPg0KICAgIDx0aD5MYXN0bmFtZTwvdGg+IA0KICAgIDx0aD5BZ2U8L3RoPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkppbGw8L3RkPg0KICAgIDx0ZD5TbWl0aDwvdGQ+DQogICAgPHRkPjUwPC90ZD4NCiAgPC90cj4NCiAgPHRyPg0KICAgIDx0ZD5FdmU8L3RkPg0KICAgIDx0ZD5KYWNrc29uPC90ZD4NCiAgICA8dGQ+OTQ8L3RkPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkpvaG48L3RkPg0KICAgIDx0ZD5Eb2U8L3RkPg0KICAgIDx0ZD44MDwvdGQ+DQogIDwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KIDxmb290ZXI+DQogIDxwPlBvc3RlZCBieTogQ2ltcHJlc3M8L3A+DQogIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateType": "handlebars" }Decoded template:
Daily Reports
API Documentation
PDF Rendering documentation.
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
John | Doe | 80 |
{ "template":"PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdGFibGUsIHRoLCB0ZCB7DQogICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7DQp9DQo8L3N0eWxlPg0KPC9oZWFkPg0KPGJvZHk+DQoNCjxoMz5BUEkgRG9jdW1lbnRhdGlvbjwvaDM+DQo8cD5QREYgUmVuZGVyaW5nIGRvY3VtZW50YXRpb24uPC9wPg0KPHRhYmxlIHN0eWxlPSJ3aWR0aDoxMDAlIj4NCiAgPHRyPg0KICAgIDx0aD5GaXJzdG5hbWU8L3RoPg0KICAgIDx0aD5MYXN0bmFtZTwvdGg+IA0KICAgIDx0aD5BZ2U8L3RoPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkppbGw8L3RkPg0KICAgIDx0ZD5TbWl0aDwvdGQ+DQogICAgPHRkPjUwPC90ZD4NCiAgPC90cj4NCiAgPHRyPg0KICAgIDx0ZD5FdmU8L3RkPg0KICAgIDx0ZD5KYWNrc29uPC90ZD4NCiAgICA8dGQ+OTQ8L3RkPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkpvaG48L3RkPg0KICAgIDx0ZD5Eb2U8L3RkPg0KICAgIDx0ZD44MDwvdGQ+DQogIDwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KIDxmb290ZXI+DQogIDxwPlBvc3RlZCBieTogQ2ltcHJlc3M8L3A+DQogIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateType":"handlebars", "pdfRenderingOptions":{ "format":"A4", "header":{ "height":"15mm", "contents":"Decoded template:Header Set in json{{page}}/{{pages}}" }, "footer":{ "height":"15mm", "contents":"Footer Set in json{{page}}/{{pages}}" }, "border":{ "bottom":"2mm", "up":"10mm", "left":"10mm", "right":"10mm" } } }
API Documentation
PDF Rendering documentation.
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
John | Doe | 80 |
{ "template": "PGh0bWw+DQogIDxib2R5Pg0KICAgIDxkaXY+DQogICAgICA8Y2VudGVyPjxoND5UaGlzIGlzIGEgZG9jdW1lbnQgd2l0aCBiYXJjb2RlczwvaDQ+PC9jZW50ZXI+DQogICAgPC9kaXY+DQogICAgPGRpdj4NClRoaXMgaXMgQ29kZTEyOCBiYXJjb2RlPC9icj4NCiAgICAgIHt7I2JhcmNvZGUgYmFyY29kZURhdGExfX17ey9iYXJjb2RlfX0NCiAgICA8L2Rpdj4NCiAgICA8ZGl2Pg0KVGhpcyBpcyBDb2RlMzkgYmFyY29kZTwvYnI+DQogICAgICB7eyNiYXJjb2RlIGJhcmNvZGVEYXRhMn19e3svYmFyY29kZX19DQogICAgPC9kaXY+DQogICAgPGRpdj4NClRoaXMgaXMgRGF0YSBNYXRyaXggQmFyY29kZTwvYnI+DQogICAgICB7eyNiYXJjb2RlIGJhcmNvZGVEYXRhM319e3svYmFyY29kZX19DQogICAgPC9kaXY+DQogICAgPGRpdj4NClRoaXMgaXMgUGRmNDE3IEJhcmNvZGU8L2JyPg0KICAgICAge3sjYmFyY29kZSBiYXJjb2RlRGF0YTR9fXt7L2JhcmNvZGV9fQ0KICAgIDwvZGl2Pg0KICA8L2JvZHk+DQo8L2h0bWw+", "templateContext": { "barcodeData1": { "content": "CP129087654", "barcodeType": "Code128", "barcodeWidth": 2, "humanReadable": true, "humanReadableFontSizeInMm": 0.5, "widthMillimeter": 100, "heightMillimeter": 40, "leftMarginMillimeter": 10 }, "barcodeData2": { "content": "CP129087654", "barcodeType": "Code39", "barcodeWidth": 2, "humanReadable": true, "humanReadableFontSizeInMm": 0.5, "widthMillimeter": 100, "heightMillimeter": 40, "leftMarginMillimeter": 10 }, "barcodeData3": { "content": "CP129087654", "barcodeType": "DataMatrix", "widthMillimeter": 100, "heightMillimeter": 50, "leftMarginMillimeter": 10 }, "barcodeData4": { "content": "CP129087654", "barcodeType": "Pdf417", "widthMillimeter": 100, "heightMillimeter": 50, "leftMarginMillimeter": 10 } }, "templateType": "handlebars" }Decoded template:
Response Pdf: response-1.pdfThis is a document with barcodes
This is Code128 barcode {{#barcode barcodeData1}}{{/barcode}}This is Code39 barcode {{#barcode barcodeData2}}{{/barcode}}This is Data Matrix Barcode {{#barcode barcodeData3}}{{/barcode}}This is Pdf417 Barcode {{#barcode barcodeData4}}{{/barcode}}
{ "template":"PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdGFibGUsIHRoLCB0ZCB7DQogICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7DQp9DQo8L3N0eWxlPg0KPC9oZWFkPg0KPGJvZHk+DQoNCjxoMz5BUEkgRG9jdW1lbnRhdGlvbjwvaDM+DQo8cD5QREYgUmVuZGVyaW5nIGRvY3VtZW50YXRpb24uPC9wPg0KPHRhYmxlIHN0eWxlPSJ3aWR0aDoxMDAlIj4NCiAgPHRyPg0KICAgIDx0aD5GaXJzdG5hbWU8L3RoPg0KICAgIDx0aD5MYXN0bmFtZTwvdGg+IA0KICAgIDx0aD5BZ2U8L3RoPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkppbGw8L3RkPg0KICAgIDx0ZD5TbWl0aDwvdGQ+DQogICAgPHRkPjUwPC90ZD4NCiAgPC90cj4NCiAgPHRyPg0KICAgIDx0ZD5FdmU8L3RkPg0KICAgIDx0ZD5KYWNrc29uPC90ZD4NCiAgICA8dGQ+OTQ8L3RkPg0KICA8L3RyPg0KICA8dHI+DQogICAgPHRkPkpvaG48L3RkPg0KICAgIDx0ZD5Eb2U8L3RkPg0KICAgIDx0ZD44MDwvdGQ+DQogIDwvdHI+DQo8L3RhYmxlPg0KPC9ib2R5Pg0KIDxmb290ZXI+DQogIDxwPlBvc3RlZCBieTogQ2ltcHJlc3M8L3A+DQogIDxwPkNvbnRhY3QgaW5mb3JtYXRpb246IDxhIGhyZWY9Im1haWx0bzpzb21lb25lQGV4YW1wbGUuY29tIj4NCiAgc29tZW9uZUBleGFtcGxlLmNvbTwvYT4uPC9wPg0KPC9mb290ZXI+IA0KPC9odG1sPg==", "templateType":"handlebars", "pdfRenderingOptions":{ "format":"A4", "header":{ "height":"15mm", "contents":"Decoded template:Header Set in json{{page}}/{{pages}}" }, "footer":{ "height":"15mm", "contents":"Footer Set in json{{page}}/{{pages}}" }, "border":{ "bottom":"2mm", "up":"10mm", "left":"10mm", "right":"10mm" } } }
API Documentation
PDF Rendering documentation.
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
John | Doe | 80 |
{ "template": "PGh0bWw+DQo8Ym9keT4NCiAgICA8ZGl2Pg0KICAgICAgPGNlbnRlcj48aDE+e3toZWFkZXJUaXRsZX19PC9oMT48L2NlbnRlcj4NCiAgICAgIDxjZW50ZXI+PGgzPnt7aGVhZGVyU3VidGl0bGV9fTwvaDM+PC9jZW50ZXI+DQogICAgPC9kaXY+DQogICAgPGRpdj4NCiAgICAgIDxjZW50ZXI+PGg0PlRoaXMgaXMgYW4gQWxsIEluIE9uZSBUZXN0PC9oND48L2NlbnRlcj4NCiAgICA8L2Rpdj4NCiAgICA8ZGl2Pg0KICAgICAge3sjdGFibGUgdGFibGVEYXRhfX17ey90YWJsZX19DQogICAgPC9kaXY+DQogICAgPGRpdj4NCiAgICAgIDxwIHN0eWxlPSJ0ZXh0LWFsaWduOnJpZ2h0Ij57e2phcGFuZXNlVGV4dH19PC9wPg0KICAgICAgPHAgc3R5bGU9InRleHQtYWxpZ246Y2VudGVyIj57e2hpbmRpVGV4dH19PC9wPg0KICAgIDwvZGl2Pg0KICA8L2JvZHk+DQo8L2h0bWw+", "templateContext": { "headerTitle": "Title / Header for the Document", "japaneseText": "て餯 とずぴょ 䦦䰯ビェ榩䣊 軣ミェ䧺お", "hindiText": "ہیلو آپ کیسے ہیں", "tableData": { "body": { "rows": [ [ "This is an italic text", "Normal Image" ], [ "This is a bold text", "", "Standard Barcode" ], [ "Decoded template:This is red colored text
", "", "QR Code" ], [ "This is text in Comic Sans MS Font
", "", "PDF-417 Barcode" ] ] } } }, "templateType": "handlebars", "pdfRenderingOptions": { "footer": { "contents": "Footer Set in json{{page}}/{{pages}}" } } }
Response Pdf: response-1.pdf{{headerTitle}}
{{headerSubtitle}}
This is an All In One Test
{{#table tableData}}{{/table}}{{japaneseText}}
{{hindiText}}