HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Not generating PDF from HTML in some browser › Re: Re: Not generating PDF from HTML in some browser
There is a big probability the issue is caused by cache control directives (or a missing of them) in HTTP header you sent with PDF documents.
PD4ML JSP taglib sends HTTP headers as below. Try the same on your side.
[language=java:3koaqin3]sr.setContentType(“application/pdf”);
String disposition = (inline ? “inline” : “attachment”) + “; filename=” + fileName;
((HttpServletResponse) sr).setHeader(“Content-disposition”, disposition);
((HttpServletResponse) sr).setHeader(“Pragma”, “cache”);
((HttpServletResponse) sr).setHeader(“Expires”, “0”);
((HttpServletResponse) sr).setHeader(“Cache-control”, “private”);[/language:3koaqin3]