Services Plugins FAQs

Bubble Page to PDF converter - 2 pages created based on certain custom sizes

I am using your Bubble Page to PDF converter to create labels which are printed on Dymo printer these labels vary in size depending on what is needed - but I am using your Bubble Page to PDF specifically because I want to become printer agnostic and just focus on the label size.

With that said, I have noticed an error in your converter - that will create a second page - no matter how small the text is or even if it is blank…

Specifically, I noticed it when working with the Dymo 30252 - 1.1" x 3.5" size…when specifying that size in a landscape form - I always get 2 pages…yet, if I reduce the size to 1.0" x 3.0" it works just fine.

Can you investigate this - confirm and fix…

I can provide screenshots and additional details if needed but should be easy for you to replicate.

Regards,

Marshall

Hi @marshall ,

Thanks for reaching out and providing details about the issue! :pray:

To help us replicate and understand the problem, could you provide the following details?

  1. Your current PDF settings – Width, height, margins, and any other relevant plugin settings.
  2. Content structure – Are you using fixed dimensions for the label, or does it adjust dynamically based on content?
  3. Screenshots or a test setup – If possible, please share a screenshot showing the second page issue and your plugin settings.

Things to Try in the Meantime:

:white_check_mark: Enable “Custom Format” – If you haven’t already, try setting the exact width and height of the label using the Custom Format option in the plugin.
image

:white_check_mark: Check for Hidden Elements – Extra margins, padding, or invisible elements could be causing an extra page. Ensure that only necessary elements are inside the PDF container.
:white_check_mark: Test a Slightly Smaller Size – Since 1.0" x 3.0" works fine but 1.1" x 3.5" does not, try gradually increasing the dimensions to identify the breaking point.
:white_check_mark: Set Page Break Handling – If any text or elements are dynamically added, ensure that unwanted page breaks aren’t triggered.
image

Let us know what you find, and we’ll be happy to assist further! If we confirm this as a bug, we’ll escalate it to our dev team for review.

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

I have an option set for a specific sized Label – in this case the label size for the Dymo 30252 label is 3.5" x 1.1”

I am going to start with my size being 3.00” x 1.00” just to show you how it works with these dimensions.
I am passing in HTML into my bubble page into a pop-up element to create the label.
The HTML is at the end of this document for you…

A java script is run to update the label

So when it is run at a 3.00 x 1.00 I get the following result…which is correct.

However, If I change and the ONLY change I make is to the Height and Width making it 3.5x1.1

I get the following result – which is INCORRECT and two pages. And no it doesn’t matter – if I put the trailing zero’s – tried that as well.

HTML for Label –

3.00" x 1.00" Label @page { size: 3.00in 1.00in; /* width x height */ margin: 0; }
@media print {
  html, body {
    width: 3.00in;
    height: 1.00in;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
  }
}

.page-border {
  width: 3.00in;
  height: 1.00in;
  box-sizing: border-box;
  border: 1.5mm solid transparent; /* adjust if desired */
  overflow: hidden; /* prevent overflow to a second page */
}

/* Main container: horizontal layout */
.label-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: white;
  padding: 0.5mm; /* reduced padding to avoid overflow */
}

/* LEFT: Vertical Entry ID */
.vertical-entry {
  writing-mode: vertical-rl; /* text flows vertically */
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 5mm;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 3mm;
}

/* MIDDLE: Wine details (brand, wine, RS, classification, competition) */
.wine-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1; /* take remaining horizontal space */
  line-height: 1.1;
  text-align: center;
}

.brand-name {
  font-weight: bold;
  margin-bottom: 0.5mm;
  font-size: 3.5mm; /* largest text */
}

.wine-name {
  margin-bottom: 0.5mm;
  font-size: 3.25mm; /* same as brand name */
}

.rs {
  margin-bottom: 0.5mm;
  font-size: 3mm; /* slightly larger than competition */
}

.classification {
  margin-bottom: 0.5mm;
  font-size: 2mm; /* slightly larger than competition */
}

.competition {
  margin-bottom: 0.5mm;
  font-size: 1.5mm; /* smallest text */
}

/* RIGHT: QR code + disclaimers */
.qr-disclaimer {
  position: relative;
  width: 22mm;  /* container for QR code & disclaimers */
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The QR code is centered in this container */
.qr-code {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Disclaimers repositioned to be closer to the QR code edge */
.disclaimer-top {
  position: absolute;
  top: -0.5mm; /* bring closer to top edge */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2mm;
  white-space: nowrap;
}
.disclaimer-bottom {
  position: absolute;
  bottom: -0.5mm; /* bring closer to bottom edge */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2mm;
  white-space: nowrap;
}
.disclaimer-vertical {
  position: absolute;
  right: -7mm; /* bring closer to right edge */
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 2mm;
  white-space: nowrap;
}
E1511A
  <!-- Middle: Wine Details -->
  <div class="wine-details">
    <div class="brand-name" id="brand-name">The Blind Horse Winery</div>
    <div class="wine-name" id="wine-name">2023 White Stallion</div>
    <div class="rs" id="rs">RS 0.00%</div>
    <div class="classification" id="classification">White Blend: Vinifera (165)</div>
    <div class="competition" id="competition">2025 Texas International Wine Competition</div>
  </div>

  <!-- Right: QR Code + Disclaimers -->
  <div class="qr-disclaimer">
    <img src="" alt="QR Code" class="qr-code" id="qr-code">
    <div class="disclaimer-top">Sample Only</div>
    <div class="disclaimer-vertical">Contains Sulfites</div>
    <div class="disclaimer-bottom">Not for Resale</div>
  </div>
</div>

Hi @marshall,

Thanks for the detailed explanation and for sharing your HTML setup!

Possible Causes & Fixes to Try:

:one: Check for Invisible Margins or Scaling Issues

  • Try reducing the custom format size slightly (e.g., 3.49" x 1.09") and see if the issue persists.

:two: Force the PDF to Match Exact Dimensions

  • In your @page CSS, update the size definition like this to make sure it is strictly enforced:
@page { size: 3.5in 1.1in; margin: 0; overflow: hidden; }
  • Also, ensure that all child elements inherit the correct width/height:
html, body {
  width: 3.5in;
  height: 1.1in;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

:three: Manually Set the Plugin’s Margins to Zero

  • In the Bubble Page to PDF plugin settings, check the margin settings and explicitly set them all to 0 to eliminate any hidden page overflow.

:four: Test With ‘Fit to Page’ Disabled

  • In the plugin settings, disable any options related to scaling and test again.
  • The “Calculate Scale from Custom Format” option might be affecting how the content is positioned—try toggling it off and retesting.

:five: Use a Different PDF Format (if applicable)

  • If possible, switch the “Format” to A4 or Letter, then manually define the dimensions within the page settings.
  • Sometimes, PDF rendering engines handle custom formats differently compared to standard ones.

Try these steps and let us know if the issue still occurs. :pray:

Best,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3