Our app offers multiple ways to generate PDF files. Depending on the method used, you may or may not be able to customize the file name. Below are two commonly asked scenarios.
Save as PDF from the browser
When you use the browser’s "Save as PDF" option (typically from the Print dialog), the filename it suggests is usually derived from the page’s <title>
tag in the HTML. This combines structural hints like the domain name or other visible headers on the page. It might look like this:
StoreName · Orders · DS1275 · Shopify.pdf
Unfortunately, this is not something we can change, since it's how the browser's native printing feature works. So our recommendation is to use our Export feature instead:
From the order view, open "More actions."
Then click "Export PDF with Order Printer Pro":
Now, hit the name of the template you'll export:
Finally, you'll see the PDF version of the document. So you can download it:
You now have a file name recommendation with the order number and the template's name. You may change the template's name if you'd like.
Automated PDF Links
When setting up PDF links for your customers' or staff's email notifications, the app will generate a snippet similar to this:
<p><a target='_blank' href='https://store-name.myshopify.com/apps/download-pdf/orders/cb5e200000000/{{ id | times: 6001 }}/{{ name | handleize }}.pdf'>Download PDF Receipt</a></p>
You can add a prefix or a suffix to the {{ name | handleize }}
variable, which is the part that determines the name of the PDF file. For example:
Invoice-
{{ name | handleize }}-B2B.pdf
So the resulting link would look like this:
https://store-name.myshopify.com/apps/download-pdf/orders/cb5e200000000/{{ id | times: 6001 }}/Invoice-{{ name | handleize }}-B2B.pdf