Small refactor for PDF export + add ability to use mpdf and tcpdf as well based on config setting + update docs