Setup PDF Core

PDF Core is an easier addon to setup for your app, and there is some optional configuration you can add to it as well.

Generic Setup

Of course, before any of the specific setup for the addon can be completed, you must do the generic setup for all addons to install it to the app. If you forgot how to do this, see Setup section of Using Addons in the main docs.

Specific Pdf Core Setup

The only other thing needed to finish setting up Pdf Core is the folder to save the pdfs to the server, the pdfDirectory. The default pdfDirectory is /content/documents/ and so if you wanted you could just use this folder, but most apps actually override this folder to make it something else. Since there is a default, if you choose to use the default folder, just make the content/documents folder within your app, and you will be done with setup. If you should choose to override this folder, it can be called whatever you want, but at a minimum, should be placed in the content folder. Also, the location needs to be added to the app-dir/apps/my-app/server/config/app.php file. So, if your pdf folder is called "pdf-folder", you should place it at apps-dir/apps/my-app/content/pdf-folder, and then set the pdf-core.pdfDirectory property to your folder you created, like so:

return [
    // other settings already existing
    "pdf-core.pdfDirectory" => "/content/pdf-folder/"
];

After this, your PDF Core is set up and you are ready to begin.