[FEATURE] Background process PDF generation

Since there seem to be some problems when the PDF generation process
is controlled by PHP it is now also possible to run the process
in the background by using the new "runInBackground" configuration.