Merge pull request #17700 from ixiam/dev-#1843
[civicrm-core.git] / CRM / Utils / PDF / Utils.php
index 923452c10eb0586e553b16937e2a3a3f3972b9d8..6fc9959b8605fce66fa9a7553c4f88c91508b0db 100644 (file)
@@ -112,6 +112,7 @@ class CRM_Utils_PDF_Utils {
   /**
    * Convert html to tcpdf.
    *
+   * @deprecated
    * @param $paper_size
    * @param $orientation
    * @param $margins
@@ -206,7 +207,7 @@ class CRM_Utils_PDF_Utils {
    * @param string $fileName
    */
   public static function _html2pdf_wkhtmltopdf($paper_size, $orientation, $margins, $html, $output, $fileName) {
-    require_once 'packages/snappy/src/autoload.php';
+    require_once 'snappy/src/autoload.php';
     $config = CRM_Core_Config::singleton();
     $snappy = new Knp\Snappy\Pdf($config->wkhtmltopdfPath);
     $snappy->setOption("page-width", $paper_size[2] . "pt");