Last activity: 27 Oct 2021 7:49 EDT
How to Download Multiple PDFs in single window
I have one requirement where i have to download multiple PDFs at a time in a single window when i click on particular link in a grid/table.
I am not facing any issues with the downloading single PDF in a window.
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.
String s = tools.getParamValue("Markup").toString(); //markup is the base64 encoded string
byte byteArray = new com.pega.pegarules.pub.util.Base64Util().decodeToByteArray(s);