🚀 [New Plugin] PDF Creator

I emailed you but have not heard back. I have an assessment tool and had this setup to export a pdf. It was working fine until August. We are not able to export any pdf’s on current reports we generate in our program. Is there an easy fix or other information that I can give you to help me? Thank you.

Hi @bbrogan, very sorry you didn’t hear back from me.

Would you be able to let me know what date you sent the email? We’re usually very on top of getting back to email requests so I’m annoyed this one appears to have slipped through the net.

Can you confirm you’re on the latest version of the plugin? :slight_smile:

If you are and it’s still not working, could you provide a video recording/screenshot of your editor setup and provide some additional detail on exactly what isn’t working?

Hi Alex
All of a sudden the images generated from the canvas don’t include the background image. Only the drawn-on edits. This issue seems to have started on Sunday. No updates or development was done.

Hi @adam26, sorry this issue has arisen.

I haven’t made any changes to PDF Creator, so there must be something else going on (it sounds like you might be using a plugin, so that could be the issue?).

I’m going to send you a private message requesting more details and I’ll do what I can.

Just want to mark this as closed for any future plugin users that see this thread:

It turns out this issue did not involve PDF Creator at all (it was another plugin that was causing the issue and PDF Creator wasn’t actually being used in any way).

Thanks for confirming @adam26 :slight_smile:

Hi, i found it super easy to set up but i keep getting blank repeting group. I can confirm that the repering ia fully visable and it appears on the pdf once downloaded but no text. Also in one of my inputs the text is cut off. Can offer some solution to this

Fixed. I changed the inputs to text fields and it fixed the issue :+1:

Great to hear you got it fixed @lcsinteriors and thanks for letting me know.

If you have other questions, just say the word! :slight_smile:

Image Format
I have a question about image formats in PDF generation. Currently, I have images inside a repeating group that I would like to be in JPEG or WebP format.

However, when I use these formats, the PDF fails to generate at all. In contrast, when I use PNG format, the PDF generates perfectly. I really want to use JPEG or WebP formats for their advantages.

Am I missing something in this process? Are there any specific settings or considerations I should be aware of to successfully generate PDFs with JPEG or WebP images in a repeating group?

Thank you for your help,
Elena

Hi @elena, thanks for using PDF Creator and sorry you’re having this issue.

You should be able to generate PDFs with all types of images in a repeating group. No special settings required.

I’m going to send you a private message to get more details on this and I’ll do what I can to get to the bottom of the problem :slight_smile:

Hey Alex!
Just wanted to say thanks a ton for your help! Turns out the issue wasn’t with your plugin at all – it was my image compression plugin acting up. Your support was seriously top-notch! :star2::star2::star2::star2::star2:

Elena

Thanks for confirming @Elena and really appreciate the kind words :slight_smile:

If you need any other help, just let me know!

Major new release - December-24
Just quick note to say I’ve just submitted a new version of PDF Creator to the Bubble team for review (version 2.0.0). This is a pretty significant update with two notable changes:

1. Performance on iOS devices
To date, PDF Creator has struggled to reliably create very large PDFs on iOS devices. This is a feature of the way the underlying libraries the plugin uses have been designed. After much tinkering and testing, I believe I’ve found a way to make it work. Generating large PDFs on iOS devices should now be much more reliable.

2. Page breaks
Previous versions of PDF Creator had two page break options:

  • General Page Breaks - when set to yes, it stopped elements being split across pages
  • Element Breaks - used to set page breaks before specific elements

Version 2.0.0 will no longer have the General Page Breaks field. Instead, this field will effectively be set to ‘yes’ by default and elements will not be split across pages in all cases.

The Element Page Breaks field will function as it did before.

If you’re currently using PDF Creator, I would recommend testing the new version before deploying to production. I will follow up here with another note once the Bubble team have completed their review.

Any questions just let me know :slight_smile:

Alex

Just a quick note to say version 2.0 of PDF Creator is now live!

As mentioned in the previous post, this version makes long PDF generation on iOS devices much more reliable and also makes page breaks play nicer by default.

The new version of PDF Creator does take a slightly different approach to generating PDFs that are > 1 page, so if you’re an existing user I would recommend testing it out before using the new version in production.

PS - I don’t have details on who is using PDF Creator. Posting on the forum is the best method I’ve found of keeping people updated on new releases… but it’s really not ideal.

Therefore, I’ve recently started sending out a monthly email that has news on all our plugin updates/releases - you can sign up for it here.

my PDFs seem very slow to create. Is there a tradeoff between elements on the page?

If so I could combine things to one text element for example. Instead of many.

Scale is already set to 2 and might be a bit blurry. Def can’t go to 1.

I also have logic to show/ hide elements if users want to remove them before creating. Maybe that’s contributing to slow speeds.

Hi @brad.h, thanks for noting this issue. What size PDFs (in KB/MB) are you creating?

The short answer is yes - the more elements you have on the page, the longer it will take to generate the PDF. It shouldn’t make a huge difference if you use 1 big element vs. lots of smaller elements, but I don’t have any specific data on this.

One thing I would suggest trying is downgrading to the prior version of the plugin (before 2.0.0). The most recent version works a bit differently under the hood. I don’t think it should impact on speed of generation, but it would be great if you could try it out and let me know.

I receive the following error:

TypeError: Cannot read properties of null (reading 'style')

Hi @fok_ste, this error code usually occurs when you’ve included an ID attribute in the ID Attribute(s) field for an element that is not visible on the page.

Can you confirm this isn’t the case in your app?

Happy to take a closer look if you think its something else :slightly_smiling_face:

Hi @alexcooney5
the element with the id is visible :slight_smile:
Not on page load, but it will be shown together with the button that has the action to generate the pdf.

Edit:
Is this a problem? the element is a RG with a lot of group, rgs etc. Some of them are visible and some group are hidden.

Thanks for confirming @fok_ste!

If you’re adding the ID of the repeating group (not the sub-groups/rgs that are hidden), it should not be a problem.

One more test: would you be able to try making all the elements visible by default (i.e. no hiding/showing) and generating a PDF?

If that doesn’t work, can you send me a private message with a link to your editor and I can take a closer look (will be tomorrow before I have a chance)? :slight_smile:

mhmm interesting. error is gone. I put everything in a new group for debugging and now its working OK.
Noticed one issue, will send that as PN