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 not working after upgrade to IE11

SA-17280

Summary



When downloading a PDF ‘eform’ document created within PRPC, browser prompts to save it using a filename based on the calling URL rather than the expected PDF name. This issue is only occurring on Internet Explorer (IE) Version 11; earlier versions of IE do not show the issue.

Error Messages



When prompted to save the PDF, IE 11 provides a filename such as this:

!TABTHREAD2?pyActivity=CreatePDF&PDFName=xxx&pzPrimaryPageName=pyWorkPage_mypage?xxxx[...]

Steps to Reproduce



Create an Activity to generate an ‘eform’ PDF document and streams the PDF back to the browser.

Root Cause



The issue was diagnosed using a HTTP Trace Tool (‘Fiddler’).
The HTTP headers returned from the server looked like this:

HTTP/1.1 200 OK
Server: xxxxxxxx/xxxxxx
Date: Tue, 22 Nov 2015 10:23:27 GMT
Pxhandler: File Download
Content-disposition: attachment;filename="Test%09PEGA%09Document.pdf"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-type: application/octet-stream
Cache-control: private
Content-language: en
Set-cookie: Pega-RULES=HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; Path=/prweb
Content-Length: 320312

 
In particular the ‘Content-disposition’ header contained an illegal filename: "Test%09PEGA%09Document.pdf".

When this filename string is decoded (URL Decoded); it resolves to:

“Test[TAB]PEGA[TAB]Document.pdf”; where “[TAB]” denotes the ASCII TAB character: TAB characters are not legal within filenames.

Resolution



Modify Activity to ensure that no TAB characters were included in the ‘filename’ Parameter.

Published January 31, 2016 - Updated October 8, 2020

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