
How to autoprint pdf attachements
Hi all,
I've just opened a web shop. Every order will send an email to webshop@domain.com. This email contains a pdf file with the costumer and product details which we use to order pick the products. For this it is necessary that the pdf file gets printed automatically. How can I make this possible? I've searched and found a plugin "autoprint" but this isn't available anymore?
Greetings, Jonas Smets
All Replies (3)
Try FiltaQuilla. It lets you run arbitrary javascript or launch external programs. I don't know how easy it would be to extract and pass the name of the file to be printed. Good luck.
http://mesquilla.com/extensions/filtaquilla/ https://addons.mozilla.org/en-US/thunderbird/addon/filtaquilla/
Hi Zenos,
Thanks for the reply. I've managed to let Thunderbird autoprint an email, but it doesn't print the attachment. I have no knowledge of javascript so i'm looking for a plugin solution. Or for a workaround were the attachment gets auto downloaded to a folder and gets printed from there?
Hope someone can help me out here. Greetings, Jonas
FiltaQuilla can certainly save your attachments to a specified folder. It could also launch another program, such as your pdf viewer, though automating the printout and telling it what to print might be non-trivial.
Your challenge is that you're working with an attachment using a format (pdf) that has zero relevance to an email client; it is just an attachment. You may need some intermediate agent (a batch file, a script, a home-made "noddy") to deal with handing the attached pdf over to whatever can be used to print it. I'm not familiar with what command-line options a pdf reader offers; ideally you would use one which can be told via the command line that you want it to print and here is the name of the file to be printed. PDF is actually something of an obstacle here, since as you have already found, printing the email message content is rather simpler.
The supposed market leader doesn't seem to offer a print command:
https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
You may have more success with Foxit or another of the me-too readers.
http://www.brooksnet.com/content/how-print-pdf-files-command-line-windows-printer