APLPdf plugin installs straight away with the standard installation process of Moodle:
/local folder of your Moodle distributionDue to some “hardcoding” of the standard PDF implantation in Moodle, the original TCPDF must be lightly modified to protect against library conflicts when using this alternative. the main reason is because PHP does not support reloading a class after it has been loaded once into memory. Note that this is a constraint, but might be better for general security of the code.
A formal patch is provided by the plugin to amend the original lib/pdflib.php to do so.