Skip to content

XSL-FO Transform API — XML + XSLT to PDF

Generate PDFs with PdfBroker.io by providing an XSL-FO document formatted as XSLT along with an XML data document. The service applies the transformation to produce the final PDF output. This approach separates data from presentation, making templates reusable.

Endpoint

POST https://api.pdfbroker.io/api/pdf/xslfowithtransform

How It Works

  1. You provide an XSLT stylesheet that produces XSL-FO output
  2. You provide an XML data document with the content to format
  3. The API applies the XSLT transformation to the XML data
  4. The resulting XSL-FO document is processed into a PDF

Advantage

By separating the XSLT template from the XML data, you can reuse the same template with different data sets. This is ideal for generating invoices, reports, certificates, and other documents with variable content.

Live Demo

See a practical example of invoice generation using XSL-FO transformation:

XSL-FO Invoice Demo

Additional Resources