Hi,
We're having issues when generating a PDF from an aspx page (using HtmlToPdf). The PDF returned sometimes uses an old version of the css file used for styling the source page.
This only happens when generation is done from the timerv4 process. When generated from the w3wp process (on demand) it will always use the most recent version.
The weird thing is that it is an intermittent problem. Sometimes it wil use the correct version, other times an older one.
I've tried the following in an attempt to resolve this issue:
- Delete all old versions of the css file (it is stored in SharePoint)
- Added "NoCache = true" to the HtmlToPdfOptions
- Added following headers to my source page
Code: HTML/ASPX
<meta http-equiv="Cache-Control" content="no-cache, mustrevalidate" />
<meta http-equiv="Expires" content="0"/>
- Reboot the server
- Clear the browser cache for the timerv4 service account
We are currently using EO.Pdf version 4.0.41.2. If more info is needed, please don't hesitate to ask.
Regards,
Joren