Skip to main content

pdf


Use the pdf endpoint to create pages, PDF reports from DLEX files, convert images to PDF, and merge PDFs into a combined PDF.


Use the pdf endpoint to create simple one-page PDF documents (cover pages for example), create documents/reports using DLEX files, convert images to PDFs, and to merge PDFs into a combined PDF. You can also combined the results from these tasks to merge into a single PDF document.

The pdf endpoint is much more complex than the other Cloud API endpoints. You must understand the pdf endpoint's schema for creating instructions. pdf.instructions - JSON Schema. Understanding the pdf endpoint requires understanding an instructions document, even if you plan on only using one of the client libraries and not calling the REST endpoint directly.

info

Refer to the following Users Guide page if you need more information illustrating how to call the endpoint directly as a REST call.

LanguageGitHub Users Guide ProjectClassLocation/Namespace/Package
C#https://github.com/dynamicpdf-api/dotnet-client-examplesProgram.csnamespace PdfExample
Javahttps://github.com/dynamicpdf-api/java-client-examplesPdfExample.javacom.dynamicpdf.client.usersguide
Node.jshttps://github.com/dynamicpdf-api/nodejs-client-examplesPdfExample.jsnodejs-users-guide
PHPhttps://github.com/dynamicpdf-api/php-client-examplesPdfExample.jsphp-client-examples

The processing steps and syntax is the same for all four languages.

  • Create a new Pdf instance and create a new page as a PageInput instance.
  • Add page numbers using the PageNumberingElement class.
  • Format the PageNumberingElement instance and add them to the PageInput instance.
  • Call the Pdf instance's Process method and get the returned PDF.