95
Views
14
Comments
PDF Merge
Application Type
Reactive

Hello All,

My requirement is one dropdown is created for category and in database against each category no. of SOP's PDF are available I want when user select any category based on this category related all pdf will be merge in single PDF file and this file save in user local system

Anyone can help me for this

Regards,

Urvashi


2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @Urvashi Sharma 

I've worked on a scenario similar to this, 

When you click on that dropdown category, just convert the existing pdfs as images and then convert them back as a single pdf and by using the download widget you can download that file. This is how I solved in my scenario.

Hope this helps.


Regards,

Nandhakumar S.

UserImage.jpg
Urvashi Sharma

Hi @Nandhakumar S,

I have beginner in outsystems can you show me your development

Regards,

Urvashi sharma

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @Urvashi Sharma 

I'm sharing my OML File in a drive link. Due to some size issue, I can't share the file directly.

1) Once you upload the file, click the "Convert to Image". It will convert each pdf page to an image.

2) Repeat the same, for the second pdf.

3) Once all the conversion process is done, click the "Download full pdf" button. It will be downloaded as a single PDF.

Refer the attached screenshot for application preview.

Hope it helps.


Regards,

Nandhakumar S.


Screenshot (13).png
UserImage.jpg
Urvashi Sharma

Hi, 

I update few of things in given OML by you and it is working fine for me. Thank you so much for your valuable time.

But in every category, there are lots of SOPs like 30 to 40 so when I click on submit it will take too much time and file is not generated.

Please suggest what I will do ?

Regards,

Urvashi

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @Urvashi Sharma,

In that case, try to delay the action (PDF Generation) to perform by using adhoc (compare current time with aprox. delay time). So, once all the pages are loaded then the pdf generation will begin.

Hope it helps.

Regards,
Nandhakumar S. 

UserImage.jpg
Urvashi Sharma

Hi,


This is the flow where i add delay 

Regards,

Urvashi

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Right before the Merge pdf's server action. I'm not sure that, it will definitely work but we can give it a try.

2022-10-18 07-32-49
Randall Jodache Chetty
2024-12-02 12-15-17
Aravind EONE

Hi @Urvashi Sharma ,

Why don't you use background process BPT or timers for this?

Just show the real time progress on the UI and let the merge process will run in background.

In this case you can avoid waiting time and screens will be progressive and no need to wait till this process finishes.


Hope this helps!

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @aravind mani

Actually, I've tried that method too, but it doesn't work for me that's why I suggested to delay using ad hoc. If your suggestion works for her, then it's totally fine.

2024-12-02 12-15-17
Aravind EONE

Okay, Can you also try the Batch by Batch merge process instead of merging them as a whole.

for example, list append 5 files, merge them and store it locally or in temp entity. then start another 5 like pagination.

finally merge those already merged Pdf's as chunks.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Sure Aravind, I'll try this, and I think it will work.

Thankyou.

UserImage.jpg
Urvashi Sharma

Hi,


You have try the above scenario ?

Regards,

Urvashi 

UserImage.jpg
Urvashi Sharma

Hello @Aravindh R ,


Can you share the steps or OML file of batch processing.


Regards,

Urvashi

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.