Empty lightbox when pdf confugered save file in firefox
I assume you want the PDF to display in the browser, rather than forcing a download. If that is the case, try setting the Content-Disposition
header with a value of inline
. and 'Content-type
to application/pdf
.
header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="the.pdf"');
You can use PHP to set header as shown above.