Has anyone ever created a Print button, which eith...
# suitescript
y
Has anyone ever created a Print button, which either: 1. Grabs a PDF from a URL 2. Grabs a PDF from the file cabinet (with no need to generate it using XML) And then just automatically prints that PDF to a designated printer? I.e. there's no pop up to open the document, it just directly grabs whichever files are in a folder (maybe with a specified name) or a URL, and directly sends those file(s) to a pre-defined printer? Is something like this possible?
a
Generating, finding, loading, merging PDFs and present it to the user is possible, sending it to a printer is a different monster due to browsers restrictions as far as I know.
🙌 1
y
@alien4u thank you! This is really helpful to know, I've been trying to search everywhere online for answers and so far not much luck
m
Yup I've done this using an email to printer service. Another good option is printnode or similar
💡 1
y
@michoel with the email to printer service you mentioned, am I right in thinking that that would be external to NetSuite? As in, I want to try and scope out that essentially there's no way to do it using SuiteScript, and we'd need a separate service like printnode to help 🙂
m
Yes you would need something outside of NetSuite. I used a $5 p/m digital ocean droplet connected via VPN https://gist.github.com/michoelchaikin/80af08856144d340b335d69aa383dbe7
👍🏻 1
🙌 1
y
@michoel fantastic thank you! This is amazing and definitely helps explain what our options could be. I don't know why I never thought of using a service outside of NS before, but it's definitely a good idea to consider