I've been doing some googling and I am not turning up the answer I am searching for.
Essentially I have a Django web app. One of the models is a Blueprint which contains a link to a PDF stored someplace. I want to be able to write an admin action so that if the user selects one or more of these models I can print the PDFs attached one after another to a physical printer.
90% of the stuff I'm finding is about how to create PDFs. I don't want to create them, they already exist. Essentially all I need to do is allow the user to select a printer to send the pdfs to in a sequential order.
I'm a little confused on what needs to be done , but I might just be overthinking it. From inside the admin action I have access to all the selected Objects. But the actual PDF files would be in memory not sitting in disk someplace. They do exist in storage. However, this is running inside a browser so I suppose all I need to do is trigger the browser's inborn print capability and pass it some sort of reference to the PDF? Does that make sense?
I have come across a couple of libraries that involve printing in Python but they seem to involve windows specifically and/or a PDF library such as foxit or adobe being installed (somewhere). Given that I'm running inside a web app inside a browser I can't really know if those apps are installed or not so how can I know if that's going to work? What if someone's running the app on their phone - popping up a windows printer dialog isn't going to work? Is there some sort of abstraction layer I can leverage?
Hopefully I am making sense here.
Can anyone assist in what I'm attempting to do?
thanks in advance, EK