Trying to use composer package Class not found

Hello,I’m trying to use this pdf-invoice to easily create an invoice but I keep getting "Class ‘InvoicePrinter’ not found."I added the package through the PHPMaker composer packages menu and updated composer upon generation.I’m trying to use this code to create a new instance of an InvoicePrinter:$invoice = new \InvoicePrinter();Any help with this would be appreciated.

Make sure you have already included the related .js and/or .css files from Page_Head server event. Please read Server Events and Client Scripts for more info and example.

If you use Composer package, you should remove "" from your code “new \InvoicePrinter”.

Removed "" from the code same issue.Tried including from Page_Head but it looks like this is only for JavaScript and CSS, the script from the package is PHP.

Make sure you have already re-generated ALL the script files again. In addition, you may check your related package files under the generated /vendor/ sub-folder.

If you want to use class without the namespace, you need to use the PHP use statement. Otherwise, you need to use fully qualified name.