public function drawImage($PDFFilePath = '', $outputPath = '', $dpi = 92, $page = 1, $imageType = 'JPEG')
    {
        $draw = new \PDFDraw();
        $draw->SetDPI($dpi);

        $doc = new \PDFDoc($PDFFilePath);
        $doc->InitSecurityHandler();
        $pg = $doc->GetPage($page);
        $draw->Export($pg, $outputPath, $imageType);
        $doc->Close();
    }