dlex-layout endpoint to create PDF reports from DLEX files created using Designer.
dlex-layout endpoint creates PDF reports from DLEX files. The endpoint consists of two form field parameters and returns a PDF document.
Refer to dlex-layout in the Client Libraries Users Guide section for this example using the DynamicPDF Cloud API's client libraries.
dlex-layout endpoint uses a DLEX file combined with JSON data to create PDF reports. It is an HTTP POST command that submits a form. The form fields consist of the following:
DlexPath- the path to the DLEX file in your cloud storage space (access using the Resource Manager), and
LayoutData- the path to the JSON layout data on your local system.
POST https://api.dynamicpdf.com/v1.0/pdf HTTP/1.1Authorization: Bearer your-api-key
|string||The path to the DLEX file in your cloud storage space used to generate PDF.||✔️|
|file||The JSON layout data used with DLEX file to generate PDF.||✔️|
|Bearer DP.V9xxxx||The API key.||✔️|
curl https://api.dynamicpdf.com/v1.0/dlex-layout -H "Authorization:Bearer DP.V9xxxxxxxxxxxxxxx"-F "DlexPath=simplereport.dlex"-F "LayoutData=@C:/mylayoutdata.json"-o simple-report.pdf
You can also use one of DynamicPDF's provided client libraries to integrate the endpoints into your client applications if you prefer. For more information, refer to the relevant Users Guide sections: