Prerequisites
Before you begin, make sure you have:- A pdf noodle account (sign up here)
- Your API key from API Settings
- At least one template created in pdf noodle
- A Bubble app
Setting Up the API Connector
Bubble connects to pdf noodle using the API Connector plugin.Install API Connector
In your Bubble app, go to Plugins → Add plugins → Search for API Connector → Install
Configure Authentication
Set up shared headers for all calls:
Check Private key in header to keep your API key secure.
| Key | Value |
|---|---|
Authorization | Bearer YOUR_API_KEY |
Content-Type | application/json |
Add the Generate PDF Call
Click Add another call and configure:
| Setting | Value |
|---|---|
| Name | generate_pdf |
| Method | POST |
| URL | https://api.pdfnoodle.com/v1/pdf/sync |
| Data type | JSON |
| Body type | JSON object |
Set the Body Parameters
Add the request body:Mark each parameter (e.g.,
<templateId>) as dynamic so you can pass values from your app.Finding Your Template ID
- Go to app.pdfnoodle.com
- Navigate to the Templates section
- Copy the Template ID shown in the list next to your template
Using in Workflows
Once the API is configured, use it in your Bubble workflows:Map the Parameters
Set the dynamic values:
| Parameter | Value |
|---|---|
templateId | Your template ID (static or from database) |
customerName | Current User's name |
invoiceNumber | Current Order's id |
total | Current Order's total |
Example: Download Invoice Button
Create a button that generates and downloads an invoice: Workflow:- When Button “Download Invoice” is clicked
- Action pdfnoodle - generate_pdf
- templateId:
your-invoice-template-id - customerName:
Current User's name - invoiceNumber:
Current Order's id - total:
Current Order's total
- templateId:
- Action Open external website
- URL:
Result of step 2's signedUrl
- URL:
Displaying PDFs
You can display the generated PDF in your app: Using a Link:Error Handling
API Call Fails
API Call Fails
- Check your API key is correct
- Verify the template ID exists
- Ensure all required parameters are provided
- Check the Bubble debugger for error details
Empty Response
Empty Response
- Make sure you initialized the API call
- Check that the response is being captured correctly
- Verify your pdf noodle account has available credits
Slow Response
Slow Response
- Large PDFs take longer to generate
- Consider using the async endpoint for complex documents
- Show a loading indicator while generating
API Endpoints
| Endpoint | Description |
|---|---|
POST /v1/pdf/sync | Generate PDF from template (synchronous) |
POST /v1/pdf/async | Generate PDF from template (asynchronous) |
POST /v1/html-to-pdf/sync | Convert HTML to PDF (synchronous) |
See the complete API Reference for all endpoints and options.
You can also generate PDFs using the API Connector plugin by calling the pdf noodle API directly. See the API Reference for all available endpoints and options.
Resources
- Bubble Integration Page - pdf noodle + Bubble overview
- Bubble Automation Guide - Step-by-step tutorial
- Bubble Manual - Official Bubble docs
- API Connector Guide - Bubble API Connector docs
- pdf noodle API Reference - Full API documentation