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
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.
Nandhakumar S.
Hi @Nandhakumar S,
I have beginner in outsystems can you show me your development
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.
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 ?
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.
This is the flow where i add delay
Right before the Merge pdf's server action. I'm not sure that, it will definitely work but we can give it a try.
Thanks for sharing
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!
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.
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.
Sure Aravind, I'll try this, and I think it will work.
Thankyou.
You have try the above scenario ?
Hello @Aravindh R ,
Can you share the steps or OML file of batch processing.