HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › BufferedImage via ImageIO not schow in firefox preview › Re: Re: BufferedImage via ImageIO not schow in firefox preview
That is strange because on all our systems (firefox 25 on mac and win7) the pdf returned by the above link opens the internal firefox pdf viewer but after loading the pdf (white bar on top of the viewer) the pdf is not shown. only the direct download – out of the viewer – shows the correct pdf.
Did you just download the pdf or did it also opened fully in the internal ff pdf viewer on you system?
Response header with embedded png:
<br />
HTTP/1.1 200 OK<br />
Date: Fri, 15 Nov 2013 15:17:54 GMT<br />
Server: Apache/2.0.59 (Win32) mod_ssl/2.0.59 OpenSSL/0.9.7l<br />
Content-Length: 2209665<br />
Expires: Thu, 01 Dec 1994 16:00:00 GMT<br />
Content-Disposition: inline; filename=antrag_partnercard.pdf<br />
Accept-Ranges: bytes<br />
Keep-Alive: timeout=15, max=100<br />
Connection: Keep-Alive<br />
Content-Type: application/pdf<br />
Response header without embedded png:
<br />
HTTP/1.1 200 OK<br />
Date: Fri, 15 Nov 2013 15:28:41 GMT<br />
Server: Apache/2.0.59 (Win32) mod_ssl/2.0.59 OpenSSL/0.9.7l<br />
Content-Length: 2207685<br />
Expires: Thu, 01 Dec 1994 16:00:00 GMT<br />
Content-Disposition: inline; filename=antrag_partnercard.pdf<br />
Accept-Ranges: bytes<br />
Keep-Alive: timeout=15, max=100<br />
Connection: Keep-Alive<br />
Content-Type: application/pdf<br />
Sometimes I get the array index out of bounds exceptions stated in the attached file – but not always…
Btw: is it possible to tell pd4ml to set the content-disposition to “attachment”? like this we could work around the pdf viewer and the browser would open the pdf directly, wouldn’t it?