PDF Conjurer (updated free plugin, now saving to database)

tbm estou com a mesma duvida, sera que é possível?? @vini_brito @endpay.app

I am trying to make a table that contains multiple orders how I can create that if anybody has a tutorial or editor link please share.

i have list of orders so need to do iteration

image
I Want to make this table which is created on the repeating group.

Hi all,
thanks for the awesome plugin. I currently have two issues implementing PDF conjurer for my app:

  1. I want to show an image in a table. How can I do that? When selecting an image from my Database I always only see the image URL and not the image itself.
  2. I want to show multiple lines in one cell with a text and a “Do a search for” following:
    Category 1: Do as search for data’s category 1
    Category 2: Do a search for data’s category 2
    etc.

Any help would be appreciated, thank you in advance!

@iscondidodido
Hi.
You can show me how to unite the two pdfs, I’m trying but it doesn’t work for me.
Thank you so much

@lordcortes I’ll try and expand the directions a bit.

  1. Place a PDF Conjurer on your page for the first PDF; let’s call this Cover Letter Generator.
  2. Place a second PDF conjurer on your page for the second PDF; let’s call this Invoice Generator.
  3. Place a PDF Merger on your page.
    NOTE: All three of these elements must be “visible” by Bubble’s standards. This just means they (1) need to be loaded on the page or (2) need to be contained by an element that is loaded on the page. The user doesn’t need to be actually able to “see” the elements, they just need to be on the page in a container that has loaded.
  4. Build the first PDF, in this case Cover Letter. I’m not going to explain this as others have done a much better job above, especially @vini_brito, making sure you finish with the “Conjure” action.
  5. Use the workflow action “When a PDF Conjurer has finished and is available in the upload state” to trigger the second PDF generation (Invoice), finishing with the “Conjure” action.
  6. Use the same workflow action as in step 5, but for the Invoice Generator, to trigger the merging.

Screenshots attached.



NOTE: This process can be expanded to include an unlimited number of PDFs, just repeat steps 5+6, and use different merging options, such as the “List” option (get the first PDF, convert to list, add items to that list manually by going through each PDF Model’s saved PDF).

2 Likes

Did you manage to do it?

Thank you.

works for me medium.
When I activate the button to generate the file, only 1 page opens, when I look at the data (file manager) the file is created complete the 2 pages.
check the execution time is very long.
I don’t know if I’m missing something else.
I realized: the conjure A has to be in save for it to work and the finished model B the same.
I don’t know if it’s my mistake.
but with this I fill the database of loose files

@lordcortes Explore my example here: Nrb-tester | Bubble Editor

TIP A: Make sure to (1) disable browser download and (2) save to database in any/all conjure actions when trying to merge!!! Otherwise, it interrupts the whole process. This is a requirement for this process.

The above demo in run mode took approximately 4.7 seconds to go from button click to file download. Considering the task at hand, I don’t think that unreasonable, seeing as you’re trying to (1) build and upload two files, (2) download two files for merging, and (3) re-upload the merged file. Speeds clearly depend on your internet.

TIP B: As far as I know, all paid Bubble plans have a (virtually) unlimited amount of database storage; a bunch of loose files is not the worst thing in the world. The only other alternative would be for me to code a direct-download option into the PDF Merger (if this would help, let me know), but you would still need to have a way to save the PDF Conjurer files (I would have to work with @vini_brito to try a work-around for save-less merging, possibly by passing base64 strings back and forth instead of saved file url’s; @vini_brito if this sounds like something we could work on to completely end-run around the need to save files, let me know!! I’d be happy to work with you on it).

1 Like

Thank you so much

If it worked for me, I had a repeated conjure.

With the last thing you wrote, it worked for me again, thank you!
I say it about time because creating a single sheet is very fast,

different question.
I create another pdf the data occupies 2 sheets. On the sheet one there is a background image and on the second one can you put a different image?

any news for bbcode support @vini_brito :innocent: :blush: :star_struck: ?

1 Like

did you find a workaround to use rich text editor + conjure pdf ? (bullet point issue) @pachocastillosr ?

1 Like

Unfortunately no

Hey,

I have a tall footer with 7 lines of text, the thing is that the downloaded PDF only displays the first lines, the other lines are missing (cropped). I already tried with custom margins top -100 or something like that.

Does anyone know how can I resolve this issue?

Thanks in advance :slightly_smiling_face: :computer:

Hello
friend
ask how could you put a progress bar on this process?
Do you have any idea

something that has not worked for me or I could not is to save the pdf already joined.

the data is in a repeating group

los datos

As to the saving the merged file issue, I use an exact same workflow in my application and have no problems saving the merged file. So long as you can download the merged file, you can save it; the two go hand in hand. Try downloading it first; if you can download, but not save, there’s something else happening to interfere. If you can not save and can not download, then again, there’s a different interference. In either event, the workflow and plugin appear to be working properly, but something else you’re doing is causing the save action to either fail or be over-ridden.

thanks for answering

the download works for me without problem.
I am going to check where the problem may be.
try creating a new one when saving and it works fine, the problem is when you make change

I think the error is that the data comes from a repeated group.
because neither the name of the file is taken from the data.
I don’t know how to fix it
image

1 Like

@hacker Well, the footer is limited in space by default, I don’t think there is an option to change that. However, this tool being how it is, I would not be surprised if someone found a workaround to it!

@Sarah_Esteve @pachocastillosr BBCode fix will take at least a few weeks to be out, and it will only be a partial fix then (no support for line breaks). I do plan on having it fully fixed some time from now so you can expect that later it will be fully usable :blush:

@nicholasrbarrow I really appreciate the helping hand! :grinning_face_with_smiling_eyes: If still needed: I have something to tell you: it already outputs the base64 of the file, in the very same event that also generates the URL or prompts to be downloaded.

The change could be generating the base64 as it already does but not uploading to Bubble at the same time nor prompting the user to download it. If you have a coding hand, all that would be needed is a change in the “Conjure” action, creating a third condition, “if download and upload are false, only output the base64” and of course place the code to do that, the code will likely be the same as the other flows.

@stefan.123 Use the “Advanced table” to show images. For 2, use the Bubble operator New 'Format as text' expression on lists

@harshc252 The normal table isn’t enough? It seems so.

@lordcortes Make sure you debug all the workflow actions so you know what is going on :blush:

3 Likes

@vini_brito great idea!! Let me see if I can implement the code on my end and I’ll get back to you.

1 Like