Save Chrome IFRAME PDF

I am posting a form for IFRAME (target) which returns a PDF (content-disposition = inline; filename = "x.pdf").

This works with current Chrome and Firefox browsers and a built-in PDF viewer.

The only problem is that Chrome cannot save the PDF (it tries to save x.html without content) (using Ctrl + S and with the icon on the PDF toolbar).

Any ideas?

+4
source share
1 answer

Actually, this is a limitation from the built-in Chrome PDF Viewer browser. You cannot save a PDF file if it is displayed in an iframe using the Chrome PDF viewer (plugin).

Using the Adobe Reader plugin for Chrome works great.

Greetings

0
source

Source: https://habr.com/ru/post/1499788/


All Articles