Add the 'Generate PDF' action to any workflow and connect the returned file_url where you need it (e.g., a file uploader, a download link, or to send by email).
INPUTS
- title: PDF document title (sets PDF metadata).
- filename: Output filename. Auto-appends .pdf if missing. Unsafe characters are replaced with underscores.
- paper_size: a4, letter, or legal (default: a4).
- orientation: portrait or landscape (default: portrait).
- content: Body text. Line breaks create new paragraphs. Long lines auto-wrap to the page width and overflow creates new pages.
- font_size: Font size in points (default: 12).
- margin_mm: Page margin in millimeters (default: 20).
RETURNED VALUES
- file_url: URL to the generated PDF, stored in your app's file storage.
- success: yes when generation succeeded, no otherwise.
- error: error message when generation failed.
NOTES
- Server-side action. No frontend setup or CDN required.
- v1 renders Latin-script characters only (Helvetica). Unicode font embedding (Japanese, Chinese, Korean, Arabic, etc.) is planned for v2.
- No external API call is made; the PDF is built in your Bubble server runtime.
DEMO EDITOR
View the demo app's editor here:
https://bubble.io/page?id=plug0006