phantom-pdf icon indicating copy to clipboard operation
phantom-pdf copied to clipboard

PhantomJS upgrade to 2.0.0

Open przemekperon opened this issue 11 years ago • 7 comments

There is an issue with phantomjs prior to 2.0.0 with web fonts not being rendered correctly. More about the issue: https://github.com/ariya/phantomjs/issues/10592

Please could you upgrade the attached phantomjs version to 2.0.0: https://github.com/bprodoehl/phantomjs/releases/tag/v2.0.0-20150528

Thanks

przemekperon avatar Jul 10 '15 09:07 przemekperon

+1

stefanneubig avatar Jul 10 '15 10:07 stefanneubig

I have been looking into this, but I did not update due to not having an official build. Since this supposed to be a drop-in library I'm not really a big fan of having to install packages via apt-get which the build you linked requires. However, I am willing to give it a go and i have made a dev branch alias to try it out for now. Just use the 1.0.*@dev version in your composer.json file and you will get the version with PhantomJS 2.0.

Please give it a try and let me know if it works out for you :)

danielboendergaard avatar Jul 10 '15 17:07 danielboendergaard

The version of phantomjs included doesn't work on my machine. I have a mac, but I think this would be an issue for Windows too. Also, if running on AWS you have to do your own build right now. Can you make the location of the bin configurable so it can be optionally loaded from another location for non supported installs?

Thanks

rettigd avatar Jul 15 '15 22:07 rettigd

@rettigd As of v0.7.1 the binary can now be set in the config file :)

danielboendergaard avatar Jul 20 '15 20:07 danielboendergaard

@danielboendergaard Thank you very much.

rettigd avatar Jul 20 '15 21:07 rettigd

@danielboendergaard how do I set up the config file? The examples only mention how to configure the PDFGenerator, not the service provider

vdh avatar Sep 16 '15 01:09 vdh

@vdh https://github.com/danielboendergaard/phantom-pdf/blob/master/src/config/config.php#L63

danielboendergaard avatar Sep 16 '15 07:09 danielboendergaard