Set up PDFs
Recipe PDFs can be downloaded directly without extensive configuration like invoices or delivery bills. Nevertheless, you can set some additional settings to customize & optimize the downloads.
Change & translate texts
You have the possibility to edit the texts in the admin under Settings > Shop > Snippets > BASE en-GB > Button "..." > Edit
according to your wishes. The texts access the translatable snippets normally.
To simplify the search for the right snippets, you should set the Other filters
filter to shopStudioRecipes
. The correct snippets start with shopStudioRecipes.document.pdfDownload
.
Settings
To access the settings you have to navigate in the admin to Settings > System > Plugins > Recipes > Button "..." > Configuration
.
PDF Provider
To access the settings you have to navigate in the admin to Settings > System > Plugins > Recipes > Button "..." > Configuration
.
Dompdf
This provider comes standard with Shopware and does not require any additional configuration. The advantage is that the creation of PDFs does not cost money. However, as a disadvantage, the customization of PDFs on a technical level is difficult to do and in many cases even impossible (e.g. 2 column layout across multiple pages).
Pdfcrowd
This provider is an external service (https://pdfcrowd.com/ (opens new window)) which also enables the rendering of PDFs possible. The advantage is that the PDFs can be adapted without any problems and the limitations of Dompdf do not exist. exist. However, the disadvantage is that the external service costs some money per month.
If you have decided to use Pdfcrowd, then you still need to enter your Username
& API key
.
PDF Caching
Caching already rendered PDFs can be useful to optimize the download speed. In the case of the provider Pdfcrowd, it can also save money, since Pdfcrowd otherwise charges per downloaded PDF.
Tip
The PDF cache is automatically cleared each time a recipe is edited.
Last updated