Skip to main content

dlex-layout


Use the dlex-layout endpoint to create PDF reports from DLEX files created using Designer.


The dlex-layout endpoint creates PDF reports from DLEX files. The endpoint consists of two form field parameters and returns a PDF document.

info

Refer to dlex-layout in the Client Libraries Users Guide section for this example using the DynamicPDF Cloud API's client libraries.

The 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

Parameters#

Form FieldsTypeDescriptionRequired
DlexPathstringThe path to the DLEX file in your cloud storage space used to generate PDF.✔️
LayoutDatafileThe JSON layout data used with DLEX file to generate PDF.✔️
Header Parameter
AuthorizationBearer DP.V9xxxxThe API key.✔️

Example cURL Request#

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

Further Information#

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: