info source: https://code.google.com/p/dompdf/

Latest release is now 0.6.1 and can be found at
https://github.com/dompdf/dompdf/releases/latest

I tested the 0.6.1 release of Dompdf with commerce_billy (7.x-1.x-dev 2014-Apr-10) and it works perfectly.

It actually fixed this Fatal Imagick error for me that prevented me from generating PDF's:
PHP Fatal error: Trying to clone an uncloneable object of class Imagick in /var/www/example/sites/all/libraries/dompdf/lib/class.pdf.php on line 4329

Comments

silkogelman’s picture

Component: Miscellaneous » Documentation

We may want to update documentation / project page

goz’s picture

Archive doesn't add php-font-lib library.

Dompdf should be downloaded with git to add this missing library.

cd sites/all/libraries
git clone https://github.com/dompdf/dompdf.git
cd dompdf
git submodule init
git submodule update
silkogelman’s picture

@Goz confirmed: the source code archive on https://github.com/dompdf/dompdf/releases/latest seems to have an empty lib/php-font-lib directory.
However the dompdf-0.6.1.zip link on the bottom of that same page seems to have a lib/php-font-lib directory containing files.
Is there anything missing from that directory in dompdf-0.6.1.zip?

goz’s picture

No everything else seem OK. Only php-font-lib was missing

RAWDESK’s picture

@silkogelman, Thanks for the tip!
I couldn't get Drupal Billy to generate any invoice PDF until i copied the content of lib/php-font-lib to my server.
So the link that is mentioned on the Billy project page ( https://www.drupal.org/project/commerce_billy ) could better be replaced with the one mentioned in the bottom of https://github.com/dompdf/dompdf/releases/latest
Took me an hour to find out what it was...

lsolesen’s picture

Status: Active » Fixed

This seems to be fixed on the project page. Please reopen if I am mistaken.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.