Services Plugins FAQs

Issue with Page to PDF Converter Plugin – Stuck on Download for Large PDFs

Hi everyone,

I’m currently using the Page to PDF Converter Plugin in Bubble, and I’m encountering an issue when trying to generate large PDFs (30+ pages).

■Issue Details:

・When I attempt to download a PDF with more than 30 pages, the process never completes.
・The download button remains in a loading state indefinitely.
・However, it doesn’t seem to be a Bubble timeout issue.

Has anyone else experienced this problem?
Are there any known limitations or workarounds for generating large PDFs?

I’d appreciate any advice or suggestions. Thanks in advance!

Hi @taked51a,

Thanks for reaching out!

To better assist you, could you please provide a bit more detail?

  1. Are you able to generate smaller PDFs (e.g., 1-10 pages) without issues?
  2. What is the size (in MB) of the PDF you’re trying to generate with 30+ pages?
  3. Have you checked your browser console or Bubble’s logs for any error messages during the download attempt?
  4. Are you using any specific actions or settings within the plugin that might affect the PDF generation (e.g., custom page sizes, images, or embedded content)?

These details will help in understanding whether the issue is related to the plugin’s functionality or something specific to the data you’re trying to process.

Looking forward to your reply!

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

Thanks for your response! After further testing, I found the following:

  1. Smaller PDFs work fine – A 28-page PDF (~761,635 bytes) downloads successfully.
  2. Larger PDFs fail – A 30+ page PDF never completes and results in an error.
  3. Console Errors – I checked the browser console and found these errors:
    • CORS error: “Access to fetch at ‘https://9moyjhx2ce.execute-api.us-east-2.amazon…’ has been blocked by CORS policy.”
    • 413 Payload Too Large error: The request fails due to size limitations.
    • TypeError: Failed to fetch: Likely caused by the failed request.

I have attached screenshots of the errors.

Plugin Settings:

  • I am using a custom page size.
  • The PDF contains only text and group elements (no images or tables).
  • No special settings have been applied.

Questions:

  • Is there a size limitation for PDF generation?
  • Are there any recommended settings to optimize large PDFs (e.g., reducing content size, splitting pages, etc.)?
  • Any workarounds for the CORS issue?

Looking forward to your help!





Hi @taked51a,

Thanks for your message. Based on the errors you shared, it looks like the issue is caused by two main factors:

  1. File Size Limitation (413 Payload Too Large Error) – The request size is exceeding the allowed limit, likely set by the external API handling the PDF generation.
  2. CORS Restriction – The request is being blocked due to cross-origin security policies, preventing the browser from fetching the PDF file.

General Limitations & Best Practices for Large PDFs

  • The Bubble Page to PDF Converter plugin processes PDF generation through an external service, which has a request size limit.
  • Large PDFs require more processing power, and exceeding the limit may result in incomplete requests or errors.
  • CORS restrictions can sometimes prevent access to generated files, especially when using server-side rendering.

Workarounds & Solutions

1. Reduce PDF Size & Complexity

  • Try reducing the number of pages per PDF (e.g., generate 20-25 pages instead of 30+).
  • Use standard page sizes (A4 or Letter) instead of a custom format (you are using 450 x 680, which may affect processing).
  • Reduce unnecessary padding/margins—your right padding is currently set to 50, which may be increasing content width.

2. Split PDF Generation into Smaller Batches

  • Instead of generating the entire PDF at once, consider splitting it into smaller sections and merging them afterward using plugins like PDF Merger
  • If your document is paginated, export each section separately. instead of a single large PDF.

3. Address CORS Issues

  • If using server-side rendering, try switching to client-side rendering to see if it avoids the restriction.

Next Steps

  • Try reducing the content size and switching to A4 or Letter format.
  • Test generating a 29-page PDF to confirm the exact size threshold causing the failure.

Let us know how it goes!

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