I got a task today, to generate *.pdf out of *.odt file, and then make printing as user friendly as possible.
So far i managed to send pdf to user, to let him save it as file, and then he can print it by himself. Also i can open pdf in the browser.
But i wanted to ask if there is a way to print it without the popup window?
Wanted to ask if its possible to at least show the print/cancel window without opening actual pdf to the viewer eyes?
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');
Yes, i have read some similar questions out there. Most of them were talking about some named action (which was supposed to be added by Acrobat Pro(?)), putting some javascript into the pdf file, which took me an hour to Google, without any luck how to do that with php/javascript if its even possible, and some other solutions involving Fpdf - but i need my pdf converted out of odt file, and i don't think that's possible in fpdf.
Any help, or tips appreciated.
PS. I want to print it on client side of course.
EDIT
I tried some embed or iframe solutions, but i was getting an error in firefox, saying something about not sufficient authorization or something. Will try to reproduce the issue on this PC, so i can give more details.