Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Export to PDF does not download PDF



Export to PDF does not download PDF post upgrading to Pega 7.4.

Error Messages

There has been an issue; please consult your system administrator

Steps to Reproduce

  1. Configure an onclick event by section refresh
  2. Invoke the HTMLToPDF activity by sending the HTML stream. HTML stream is null and an error occurs

Root Cause

A software use or operation error. The incorrect configuration of using ReloadSection to download the PDF is used.


Perform the following local-change: 
Use the below RunScript: 

function downloadFile(activityName, className, applicationName, fileName, fileType){ 
var suURL = SafeURL_createFromURL(pega.u.d.url); 
suURL.put("pyActivity", activityName); 
suURL.put("pyClassName", className);
 suURL.put('ApplicationName', applicationName);
 suURL.put('FileName', fileName);
 suURL.put('FileType', fileType); 
 var formEle = document.createElement('form'); = "download_file"; formEle.method = "POST";
 formEle.action = suURL.toURL(); 
 formEle.trget = "";



Published December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us