Skip to content

Commit

Permalink
Change Knp_Snappy_Pdf classname to just Pdf classname with \Knp\Snapp…
Browse files Browse the repository at this point in the history
…y namespace
  • Loading branch information
kzalewski committed Sep 24, 2012
1 parent 3800861 commit 883122e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion civicrm/custom/php/CRM/Utils/PDF/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ static function _html2pdf_wkhtmltopdf( $paper_size, $orientation, $html_infile,
}

//$snappy = new Knp_Snappy_Pdf($config->wkhtmltopdfPath);
$snappy = new Knp_Snappy_Pdf($wkhtmltopdfPath);
// kz - Snappy is now using PHP namespaces
$snappy = new \Knp\Snappy\Pdf($wkhtmltopdfPath);
$snappy->setOption( "page-width", $paper_size[2]."pt" );
$snappy->setOption( "page-height", $paper_size[3]."pt" );
$snappy->setOption( "orientation", $orientation );
Expand Down

0 comments on commit 883122e

Please sign in to comment.