Creating a PDF report with pdfkit not working

Im trying to see if I can export plots as pdf report with code below but it exports a pdf with only the file path html and not the plot itself - am i missing something?

Cross reference response with information on orca: Creating a PDF report with pdfkit