Download Multiple Selected PDF in single button Click
I have one requirement, i have to download multiple PDFs at a time when i click on particular link or button
I can able to download single PDF in a button click (onclick : open URL in Window).
multiple File Selection shown in popup. download All button also in same popup.
As per the current code we are getting multiple base64 format for each page in a page list. I tried looping each page and trying to call the same steps below but it’s downloading last interaction only. For example, if the page list count is 3 then it’s downloading 3rd iteration PDF only I am not seeing 2nd & 1st iterations PDFs.
Please see attached current steps for downloading single PDF.
Java step:
byte[] byteArray=Base64Util.decodeToByteArray(myStepPage.getString("pyFileSource"));
tools.sendFile(byteArray, myStepPage.getString("pyFileName"), false, null, true);
***Edited by Moderator Marissa to change Product from Pega Knowledge to Pega Platform***