We can add a 3rd-party to library to Magento, for example TCPDF Show archive.org snapshot .
- Download the library and unzip.
 - Place the unzip contents to 
/lib/Tcpdf/. - For autoloading by Magento, we need to change the main application class name to Mage standard (separated by underscore): 
<folder-name>_<original-class-name>; for TCPDF, we edit the file Tcpdf.php: the original class name isclass TCPDF, we change it toclass Tcpdf_Tcpdf.class Tcpdf_Tcpdfclass Tcpdf_Tcpdf2DBarcode
 - No we can instantiate the class like this: 
$pdf = new Tcpdf_Tcpdf(); 
Posted by kiatng to OpenMage (2019-11-14 08:38)