I have been trying all day to get this to work. Right now I am able to save the document as .docx file but I wanted to be able to save the document as PDF I have tried with
Knowing al that, I'm guessing the answer is changing:
$includeFile = Settings::getPdfRendererPath() . '/' . $this->includeFile;
to
$includeFile = Settings::getPdfRendererPath();