Customising your PDF

The PDF Creator plugin comes with a number of options that allow you to customise your PDF

Option
Type of field
What it does

Field Name

text

Set the name of the PDF file your user creates

Auto download

yes/no

Choose whether you want the PDF to automatically download in the browser

Save to database

yes/no

Choose whether you want to save the PDF to your Bubble database

Scale

number (1-10)

The scale used for rendering the PDF. A higher value will result in a higher quality image, but also a larger file size and a longer time to create the PDF.

There are also a number of options that allow you to customise the layout of your PDF

Option
Type of field
What it does

Orientation

text

Choose either 'Landscape' or 'Portrait'

Top Margin

number

Sets a top margin in your PDF (in px)

Left Margin

number

Sets a left margin in your PDF (in px)

Bottom Margin

number

Sets a bottom margin in your PDF (in px)

Right Margin

number

Sets a right margin in your PDF (in px)

Format

text

Select the dimensions of your PDF

Custom Dimensions

number

Only applies if you select 'custom' for the 'Format'. Allows you to specify height and width in px for the PDF. Syntax is 'width, height' (EG: 400, 800)

Pagebreak

yes/no

Sets pagebreaks to avoid elements overlapping on pages of the PDF. See this section for more details.

Last updated