Developer forum

Forum » CMS - Standard features » pdf renders differently on Windows 7 server

pdf renders differently on Windows 7 server

Ton Martens
Reply
Hello,

This website has been copied from a Win2003 to a Window7 server. DW 19.0.3.3.
Now, when generating a page using "pdf=true", a piece of hidden html (display:none) is visible in the PDF, while it's  invisible when viewing it in a browser (pdf=false). 

The 'display:none' setting is set by javascript on a window.load event. 

This works on the old machine (win2003), but now, this small piece fails on the new install. Has this something to do with the version of the pdf-generator (abcpdf?) used by DW? Any suggestions to fix this?

Thanks,
Ton

Replies

 
Vladimir
Reply
Hi Tom,
I think this is not associated with the version of abcpdf dll. May be this problem related to problem when Javascript isn't quite completing by the time that ABCpdf renders the pdf.
Try to execute your JavaScript on DOMContentLoaded event:
$(document).ready
rather than on window.load

Best regards,
Vladimir

 
Ton Martens
Reply
 Hi Vladimir,

Thanks for your feedback. However, I use the document.ready. So my original post wasn't accurate about that. Sorry for that.
It still isn't working. It seems that this PDF uses a browsercontrol on the server to render the HTML, and javascript might be disabled or so..

Ton

 

You must be logged in to post in the forum