Issue showing PDF in separate browser tab
Hi all,
I want to show a pdf preview by clicking on a button.
I already have a HTML rule which contains the section I want to previw.
I use the activity "pyViewAsPDF" and pass the HTML section name to the HTMLStream parameter and a corresponding PDF name as another parameter.
This activity calls the HTMLToPDF and then the View activity in Code-Pega-PDF.
If I check the tracer everything seems fine, the Markup will be generated by the HTMLToPDF and then the byte array for the PDF is also generated and passed to the View acitivty.
The ootb behaviour is, that after using that activity on action set "Open URL in new window" that the file is downloaded. This is from type "file" and has to be opened via "open with" and then "Firefox" for example. Then its shown correctly in the browser. But there is not pdf icon in the windows explorer.
If i change the value in the Java step of the View activity that it should not be downloaded (last parameter in "sendFile" to "false", then I gets opened in browser, but with the byte array and not in PDF format.
Can you please help me on that issue?
Thanks in advance!
Joshua