Is it possible to print a file attachment on an ad...
# advancedpdf
e
Is it possible to print a file attachment on an advanced PDF? Scenario - blind shipping an order, distributor sends us their Packing Slip and we print it and place it in the box. We currently have to send the PDF of their packing slip to our shipping team and have them print it. I'm wondering if I could just have the user attach the PDF to the Sales Order and have it print automatically when then picking ticket prints?
a
This is possible, how difficult depends on how the PDf is attached. If the users are just going to attach it to the communications tab on the SO, then you'd need a script to append it to the PDF. If it's selected in a custom Document field on the SO, you may be able to just do it from within the PDF itself using <pdfset> - that allows you to combine PDFs. So you'd do <pdfset><pdf> {all your regular pdf stuff] </pdf> <pdf src = ${your custom field link to the other PDF} /> </pdfset>
e
After a small struggle... this worked perfectly! I forgot that the advanced PDFs dont like `&`s in the src. So I had to replace them with
&
👍 1