X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FPDF%2FUtils.php;h=6fc9959b8605fce66fa9a7553c4f88c91508b0db;hb=868c96cc9d2ae67985ed47fce63697b42ce7ea34;hp=a7609deba724a0780a343ced21cc5c7f63df1fde;hpb=64ada38ca07d67b8336c2fba7d59f3384f3555a9;p=civicrm-core.git diff --git a/CRM/Utils/PDF/Utils.php b/CRM/Utils/PDF/Utils.php index a7609deba7..6fc9959b86 100644 --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@ -112,6 +112,7 @@ class CRM_Utils_PDF_Utils { /** * Convert html to tcpdf. * + * @deprecated * @param $paper_size * @param $orientation * @param $margins @@ -121,6 +122,8 @@ class CRM_Utils_PDF_Utils { * @param $stationery_path */ public static function _html2pdf_tcpdf($paper_size, $orientation, $margins, $html, $output, $fileName, $stationery_path) { + CRM_Core_Error::deprecatedFunctionWarning('CRM_Utils_PDF::_html2pdf_dompdf'); + return self::_html2pdf_dompdf($paper_size, $orientation, $margins, $html, $output, $fileName); // Documentation on the TCPDF library can be found at: http://www.tcpdf.org // This function also uses the FPDI library documented at: http://www.setasign.com/products/fpdi/about/ // Syntax borrowed from https://github.com/jake-mw/CDNTaxReceipts/blob/master/cdntaxreceipts.functions.inc @@ -204,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");