Hi,

I've embedded pdf output (with wkhtmltopdf processor). No problem with a "normal" browser, on the contrary when I read my website (www.fiscooggi.it) with safari on iphone/ipad I cannot obtain a right pdf export but only a sequence of unreadable characters.

Is it an issue with pdf (print module) or with wkhtmltopdf processor?

Comments

jcnventura’s picture

Title: pdf isn't compatible with iphone/ipad » pdf binary data being output to browser
Status: Active » Postponed (maintainer needs more info)

I've also got this on my browser when using a PC. Basically the problem is that something tries to serve your PDF from cache in a wrong way.

This is probably a problem somewhere in your server optimization services.

alex72rm’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Thanks a lot!

It was depending on Boost module configuration. It needs to set up printpdf/* as exception for caching.

Now it works right.

jcnventura’s picture

Actually, what Boost should be doing is to serve it from it's cache as application/pdf and not as text/html.

But I'm not a Boost expert, so I have no idea how to do it, or even if it can be done...

jcnventura’s picture

Title: pdf binary data being output to browser » Serve PDF as application/pdf