✅
Link to the plugin page: https://zeroqode.com/plugin/pdf-generator-for-bubble-mobile-1781085102839x133842433986479440
Demo to preview the plugin:
✅
✅
Introduction
PDF Native is a powerful Bubble plugin that lets you generate and customize professional PDFs natively inside your app. Add text, images, tables, QR codes, watermarks, headers, footers, custom margins and more - all fully customizable and easy to use.
Prerequisites
This plugin is designed specifically for the mobile version of the Bubble editor. To test the plugin on your mobile device, use the TestFlight app available at: https://testflight.apple.com/join/j73hHPR6
⚠️
Please note that the testing app is currently available for iOS only.
How to setup
- Install the PDF Generator for Bubble Mobile plugin in your Bubble editor.
- Place the PDF Native plugin element on your page (if required).
- Add the relevant workflows/actions to generate PDF (e.g. "Add Text", "Add Table", "Generate PDF").
- Configure your settings: page size, orientation, margins.
- If using external images, ensure they are accessible (or converted to base64).
- If using header/footer or pagination, enable and set up the appropriate options in the plugin action.
Element Actions
Initialize PDF Document
This action sets up your PDF document’s main layout, page size, orientation, margins, header/footer, and (optionally) password protection.
Run this as the first action before adding any content!
Field | Description | Type |
Page Size | Standard size for your PDF (e.g. A4, Letter, etc.) | Dropdown |
Custom Size | Set a custom width/height if "Custom Size" is selected. | Text |
Page orientation | Choose Portrait or Landscape. | Dropdown |
Margin Left | Space from left edge of the page (in points). Default: 40 | Number |
Margin Top | Space from top edge of the page. Default: 60 | Number |
Margin Bottom | Space from bottom edge of the page. Default: 60 | Number |
Margin Right | Space from right edge of the page. Default: 40 | Number |
User Password | Password to protect opening the PDF. | Text (optional) |
Header Settings | ||
Margin Left | Left margin of the header. 0 = same as page left margin. | Number |
Margin Top | Top margin of the header. Default: 0. | Number |
Margin Right | Right margin of the header. 0 = same as page right margin. | Number |
Margin Bottom | Bottom margin of the header. 0 = 10. | Number |
Footer Settings | ||
Margin Left | Left margin of the footer. 0 = same as page left margin. | Number |
Margin Top | Top margin of the footer. 0 = 10. | Number |
Margin Right | Right margin of the footer. 0 = same as page right margin. | Number |
Margin Bottom | Bottom margin of the footer. Default: 0. | Number |
Add Text
This action lets you add custom text anywhere in your PDF.
Supports custom font size, color, alignment, bold, italics, adding to header/footer, page breaks, and more.
Field | Description | Type |
Text | Plain text to add to the PDF. Line breaks are supported. | Text |
Preserve Leading Spaces | If checked, leading spaces and formatting are preserved (for code, preformatted text). | Checkbox |
Margin Left | Custom left margin for this text block. | Number |
Margin Top | Custom top margin for this text block. | Number |
Margin Right | Custom right margin for this text block. | Number |
Margin Bottom | Custom bottom margin for this text block. | Number |
Page Break | Insert a page break before or after this text. Options: Unspecified, Before, After. | Dropdown |
Add in Footer | If checked, this text will appear in the footer of every page. | Checkbox |
Add in Header | If checked, this text will appear in the header of every page. | Checkbox |
Alignment | Text alignment: Left, Center or Right. | Dropdown |
Font Size | Size of the font (in points). Default: 18 | Number |
Color | Text color, selected with the color picker. | Color |
Bold | If checked, makes text bold. | Checkbox |
Italics | If checked, makes text italic. | Checkbox |
Add Image
Add static or dynamic images to your PDF with full control over size, alignment, margins, and positioning in header/footer.
Use this action to insert company logos, product images, QR codes, or any visual content into your document.
Field | Description | Type |
Image | Image from the Bubble file manager, database or a dynamic expression. If empty, the action is skipped. | Image |
Width | Image width in points. Default: 200. | Number |
Height | Image height in points. Default: 200. | Number |
Align | Default, Left, Center or Right. | Dropdown |
Margin Left / Top / Right / Bottom | Space around the image in points. Default: 0. | Number (optional) |
Page Break | Unspecified, Before or After. Ignored in header/footer. | Dropdown |
Add in Footer | If checked, the image appears in the footer of every page. | Checkbox |
Add in Header | If checked, the image appears in the header of every page. | Checkbox |
Add Watermark
Add a text watermark to your PDF pages with custom color, opacity, rotation, size, and style. Perfect for adding branding, DRAFT, CONFIDENTIAL, or copyright marks across your document.
Field | Description | Type |
Text | The watermark text (e.g., “Zeroqode”, “CONFIDENTIAL”, “DRAFT”). | Text |
Bold | If checked, makes the watermark bold. | Checkbox |
Italics | If checked, makes the watermark italic. | Checkbox |
Color | Color of the watermark text (hex code, e.g. #1AAFD0). | Color |
Font Size | Font size of the watermark (large values recommended, e.g. 100). | Number |
Angle | Rotation angle of the watermark (in degrees, negative for slant). | Number |
Opacity | Transparency (0 to 1, e.g. 0.15 is very transparent, 1 is solid). | Number |
Add Table
Add dynamic or static tables to your PDF. Use this action to display products, invoices, lists, reports, or any structured data, with full control over columns, header, layout, color, and margins.
Field | Description | Example | Type |
Table Column Width | Fit available space (equal columns across the page) or Fit content (columns as wide as their content). | Fit available space | Dropdown |
Create header row in this table? | Adds a header row using the column headers. | yes | Checkbox |
Table Layout | Visual style: Standard, No Borders, Header Line Only, Light Horizontal Lines, Strong Outer Border (full grid), Zebra (alternating row background), Light Horizontal Lines Without Header (header row is not repeated on new pages). | Zebra | Dropdown |
Page break | Unspecified, Before or After. | Before | Dropdown |
First–Fourth Column Header | Column title. A column is shown if it has a header or body data. | Name | Text |
First–Fourth Column Body | Column values as comma-separated text. | Search for Products:each item’s Name | Text |
Table Margin Left / Top / Right / Bottom | Space around the table in points. | 0 / 40 / 0 / 40 | Number |
Table Header Color | Background color of the header row. Each table can have its own color. | #1AAFD0 | Color |
Column Body values are split by commas. If your data itself contains commas (e.g. "Smith, John"), it will be split into separate rows. Use values without commas or replace them before passing data to the table. If all columns are empty, the table is skipped.
Add QR Code
Add a QR code to your PDF, with custom size, alignment, and margins.
Perfect for sharing website links, digital signatures, event check-ins, WiFi access, or any scannable info directly from the PDF.
Field | Description | Type |
Value | The data to encode in the QR code (text, URL, email, phone, etc). | Text |
Size | Width/height of the QR code (square) in points or px. | Number |
Align | Alignment inside the PDF (left, center, right). | Dropdown |
Margin Left | Space from left edge. | Number (optional) |
Margin Top | Space from top. | Number (optional) |
Margin Right | Space from right edge. | Number (optional) |
Margin Bottom | Space from bottom edge. | Number (optional) |
Page Break | Unspecified, Before or After | Dropdown |
Generate PDF
Use it as the last step in your PDF workflow, after you’ve added all texts, images, tables, QR codes, and watermark.
Field | Description | Type |
Endpoint | Your app’s Bubble file upload URL, where the generated PDF is stored. Test version: https://yourapp.bubbleapps.io/version-test/fileupload. Live version: https://yourapp.bubbleapps.io/fileupload. If you use a custom domain, replace yourapp.bubbleapps.io with it. | Text (URL) |
File Name | Name of the generated PDF file. | Text |
States Refresh
Resets all element states (Pdf Status, Pdf Url, Pdf Size KB, Pdf Error). Use it before generating a new PDF if you show the status or the previous file URL to users.
Element States
Name | Description | Type |
Pdf Status | Current generation status: starting, preparing, success or Failed. | Text |
Pdf Url | URL of the generated PDF file. | Text |
Pdf Size KB | Size of the generated PDF in kilobytes. | Number |
Pdf Error | Error details when generation fails. Starts with the step where it happened, e.g. [validate] [Add Table] .... Empty when generation succeeds. | Text |
Element Events
Caption | Description |
Pdf Generated | Triggered about 1 second after the PDF is generated and Pdf Url is available. |
Workflow example
How to Build Your First PDF
Imagine this plugin as a LEGO set for your mobile app — a flexible toolkit that lets you build amazing, fully functional documents such as Tickets with QR codes, Invoices, Certificates, Booking Confirmations, and many other fantastic PDFs you can deliver directly to your users.
For creating any PDF, the first action must always be:
🪄 Step 1: Initialize PDF Document
This step defines the global settings for your file - page size, orientation, and margins.
Think of it as setting up the “paper” before you start placing text or images.
⚠️
Important: Pay attention to both page margins and header/footer margins
When building your PDF, you need to consider not only the page margins, but also the margins defined inside your header and footer.
These three areas work together — if they’re not aligned correctly, your content may overlap or start too high/low on the page.
🧠 How it works
If you decide to add a header or footer, the page margins must include their height, plus the distance you want before the first element on the page.
For example:
- If your header height is
100
- And you want your first text block to start
20units below it
Then your Page Top Margin should be:
👉
Header height (100) + Distance (20) = 120This ensures the content starts exactly below the header without overlap.
The same logic applies to the footer — the bottom page margin must be at least equal to the footer height plus any desired padding below your main content.
🧾 Step 2: Create the Header
After defining the correct margins in the Initialize PDF Document step, you can start building your header (the top section of your PDF).
This is where you typically place your logo, title, or date — the elements that repeat across all pages of your document.
📌 Including Elements in the Header or Footer
Each “Add Image” or “Add Text” action in the plugin includes a checkbox:
🧠
How it works
The element (image, text, etc.) will be rendered inside the header or footer area.
It will appear on every page of the document — perfect for logos, titles, dates, or footnotes.
- Add Image (company logo, Add in Header = yes)
- Add Text (“Company Report”, Add in Header = yes, bold, center, size 25)
💧 Step 3: Add a Watermark
A watermark is a semi-transparent text placed behind all page content — usually used to show ownership, brand identity, or document status (e.g. CONFIDENTIAL, PAID, COPY).
It gives your PDF a professional look and extra protection against duplication.
✍️ Step 4: Add Text
Use Add Text to insert any paragraph, title, or note into your PDF. You can fully control the position, style, and formatting of each text block.
🖼️ Step 5: Add Image
Use Add Image to place logos, photos, or any visuals in your PDF. You can control the size, position, and repetition of each image.
- Generate PDF
🔲 Step 6: Add QR Code
Use Add QR Code to insert a scannable code that links to your website, order page, or ticket validation link.
Perfect for digital tickets, invoices, or certificates.
📊 Step 7: Add Table (Dynamic Inventory Data)
Use Add Table to display dynamic lists such as product inventories, invoices, booking summaries, or order details.
Each row and column can be generated automatically from your Bubble database or API data.
📄 Step 8: Generate PDF
The final step in your workflow is Generate PDF — this action compiles everything you’ve added (text, images, QR codes, tables, watermarks, etc.) into one ready-to-use document.
Changelogs
Update 23.06.26 - Version 1.1.0
- Bubble Plugin Page Update (Description).
Update 05.06.26 - Version 1.0.0
- Initial Plugin Release.