Refactor InvoicePdf Module and remove dependencies from Core also fix docblock null should be void