Getting Started
PDF Rendering Service converts any publicly accessible URL into a downloadable PDF. Available as an open web service in Eyevinn Open Source Cloud, it is useful for generating invoices, reports, or archiving web content without installing headless browser infrastructure yourself.
Prerequisites
- If you have not already done so, sign up for an Eyevinn OSC account
Step 1: Create the PDF Rendering Service instance
Navigate to the PDF Rendering Service in the Eyevinn OSC web console. Click on "Create pdf-rendering-srv" and fill in:
- Name: a name for your instance (alphanumeric only)
Click on the instance card when the status is green and "running". Copy the service URL.
Step 2: Render a URL to PDF
Send a POST request with the target URL in the request body. The service returns the rendered PDF as a binary stream.
# Render a page to PDF and save to a file
curl -X POST https://<your-instance-url>/pdf \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}' \
--output report.pdf
Using the CLI
npx @osaas/cli create restorecommerce-pdf-rendering-srv my-pdf-svc
Configuration Options
| Option | Required | Description |
|---|---|---|
name |
Yes | Name of the pdf-rendering-srv instance. Alphanumeric only. |