Automatically attach Invoice PDF to confirmation receipt based on the gl...

...obal setting
To confirm : is there forth parameter for printPDF function?