Demo to preview the plugin:

Introduction

Obtain a no-code plugin that empowers apps with the capability to print the current page and offers various other features. No API setups or waiting time for file creation required.
This plugin also allows printing based on a custom stylesheet, skipping elements, printing specific elements, creating HTML templates for dynamic data insertion, or designing templates with custom HTML, JavaScript, CSS, and dynamic data combined.
The plugin encompasses all these functionalities within just a few actions. The instructions are straightforward, but if you need any assistance, please don’t hesitate to reach out.
Image without caption

How to setup

  1. Enable ID Attributes
    1. Go to the settings page in your editor. Under the General tab click on the checkbox “Expose the option to add an ID attribute to HTML elements”
      App Settings → General Tab.
      App Settings → General Tab.
  1. Add Elements to the Page
      • Open the Design Tab in Bubble.
      • Locate the following elements under Visual Elements:
        • Visual elements → Plugin
          Visual elements → Plugin
        • PDF Viewer → Displays PDF documents in your app.
        • Print Toolkit → The main printing handler that enables printing functionalities.
        • Print Pro Viewer → An advanced PDF viewer with enhanced display options.
        • Drag and drop the necessary elements onto your Bubble page.
  1. Set Up Printing Workflows
      • Open the Workflow Tab in Bubble.
      • Click "Add an Action" and select one of the available printing actions from Print Toolkit.
      • Configure the parameters as needed:
        • Select the elements you want to print.
        • If using Print Element By ID, ensure the element has a unique ID Attribute set.
          • Workflow action → Print Element By ID.
            Workflow action → Print Element By ID.
        • If using Print HTML Template, define the HTML content and styles.
          • Workflow action → Print HTML Template.
            Workflow action → Print HTML Template.

Plugin Element Properties

PDF Viewer

Element properties → PDF Viewer.
Element properties → PDF Viewer.
Title
Description
Type
PDF URL
The URL of the PDF file to be displayed in the viewer. It can be dynamically set using an input or database value.
Text

Print Toolkit

Element properties → Print Toolkit.
Element properties → Print Toolkit.
Title
Description
Type
URL for print
The URL of the page or template to be printed. This can be dynamically set using an external or internal Bubble URL.
Text

Print Pro Viewer

Element properties → Print Pro Viewer.
Element properties → Print Pro Viewer.
Title
Description
Type
HTML
The HTML content to be displayed in the viewer before printing. This field allows rendering custom HTML for preview and print.
Text

Plugin Actions

Print Elements

Prints one or multiple selected elements from the page.
Workflow action → Print Elements.
Workflow action → Print Elements.
Title
Description
Type
Page Title
The title of the printed page.
Text
ID of Elements to Print
The ID(s) of the elements to be printed. Use commas to separate multiple IDs.
Text
Import Page's CSS?
Whether to import the page's CSS styles in the print.
Yes/No
Import Page's Style?
Whether to include the page's style settings in the print.
Yes/No
External CSS Files URL
The URL(s) of external CSS files to be applied to the print.
Text
Remove Inline Styles?
Whether to remove inline styles from the elements before printing.
Yes/No
Set Print Delay (ms)
Time delay (in milliseconds) before printing, useful for ensuring content loads properly.
Number

Print HTML Template

Prints a custom HTML template with optional timeout and file naming.
Workflow action → Print HTML Template.
Workflow action → Print HTML Template.
Title
Description
Type
Custom HTML Template
The HTML content to be printed. This can be dynamically set using a multiline input or database value.
Text
Timeout
Time delay (in milliseconds) before printing. Useful to ensure content is fully rendered before execution.
Number
Output the Template
Whether to generate an output of the template before printing.
Yes/No
File Name
The name of the file if the print output needs to be saved as a document.
Text

Print HTML Template (Advanced)

Prints an advanced HTML template with custom CSS and enhanced settings.
Workflow action → Print HTML Template (Advanced).
Workflow action → Print HTML Template (Advanced).
Title
Description
Type
Custom CSS
Custom styles to be applied to the printed content. Wrap the styles inside (<style></style>) tags.
Text
Custom CSS URL
External CSS file URL to be applied to the printed content.
Text
Custom Head JavaScript
JavaScript code to be included inside the <head> section. Useful for global scripts.
Text
Custom Body JavaScript
JavaScript code to be included inside the <body> section.
Text
Custom Head HTML (remove tags)
Custom HTML content for the <head> section without additional tags.
Text
Custom HTML Header
HTML structure to be used as the header of the document.
Text
Custom Footer HTML
HTML structure to be used as the footer of the document.
Text
Timeout
Time delay (in milliseconds) before printing to ensure content is fully loaded.
Number
Output the Template
Whether to generate an output of the template before printing.
Yes/No
File Name
The name of the file if the print output needs to be saved as a document.
Text

Print Whole Page

Prints the entire page as it appears in the browser.
Workflow action → Print Whole Page.
Workflow action → Print Whole Page.
Title
Description
Type
File Name
The name of the file if the print output needs to be saved as a document.
Text

Invoice Builder

Generates and prints an invoice template with customer and service provider details.
Workflow action → Invoice Builder  Part 1/2.
Workflow action → Invoice Builder Part 1/2.
Workflow action → Invoice Builder  Part 2/2.
Workflow action → Invoice Builder Part 2/2.
Title
Description
Type
Invoice Number
Unique identifier for the invoice.
Text
Creation Date
The date and time when the invoice is generated.
Date
Customer’s Name
The name of the customer receiving the invoice.
Text
Customer’s Address
The street address of the customer.
Text
Customer’s City
The city where the customer is located.
Text
Customer’s Phone Number
The contact number of the customer.
Text
Customer’s Zip Code
The postal code of the customer's address.
Text
Logo
The company logo to be displayed on the invoice.
Image
Company Name
The name of the service provider issuing the invoice.
Text
Company Address
The address of the service provider.
Text
Company City
The city where the service provider is located.
Text
Company Email
The email contact for the service provider.
Email
Company Zip Code
The postal code of the service provider’s address.
Text
Company Phone
The contact number of the service provider.
Text
Items
A list of items included in the invoice.
List
Price
The price for each item in the invoice.
List (Number)
Amount
The quantity of each item.
List (Number)
Item Total
The total price for each item (Price x Amount).
List (Number)
Total
The total sum of all item totals.
Number
File Name
The name of the file if the invoice needs to be saved.
Text

Print Another Page

Prints content from another page by using a specified URL.
Workflow action → Print Another Page.
Workflow action → Print Another Page.
Title
Description
Type
Element
Select the Print Toolkit element that will handle the print operation.
Element

Print Element Inline Styles

Prints an element while preserving its inline styles.
Workflow action → Print Element Inline Styles.
Workflow action → Print Element Inline Styles.
Title
Description
Type
Element
Select the Print Toolkit element that will handle the print operation.
Element
Element ID
The unique ID of the element to be printed with inline styles.
Text

Print Element By ID

Prints a specific element using its unique ID.
Workflow action → Print Element By ID.
Workflow action → Print Element By ID.
Title
Description
Type
Element ID
The unique ID of the element to be printed. Ensure the ID is correctly set in the element properties.
Element
File Name
The name of the file if the print output needs to be saved as a document.
Text
Image without caption

Changelogs