Fixing generating PDF file memory issue by implementing simpleTables from mPDF library.