Closed L8D closed 8 years ago
@john yesterday it seemed like you had gotten something slightly working with PhantomJS 2. Can you let me know what progress you made on that so I can look into finalizing the fix myself and getting this merged by/on Monday?
I just followed some of the stuff here:
https://github.com/ariya/phantomjs/pull/14085#issuecomment-204483473
Specifically, the viewportSize
advice
K so I got into it and the problem stemmed from the viewport size being inaccurate and accommodating for the margins that are actually being overridden by the command line flags. Calculating the viewport size for a DPI of 96 and tweaking some of the order manifest CSS got it to work. I also reverted to the old-school flex boxes to get those to render correctly in phantom (even though everyone on the internet says phantom.js v2 supports flexboxes).
We need to test the other PDFs to make sure that the gen-pdf
changes work. Then we need to setup Heroku to use PhantomJS 2.0
This has been confirmed by Gillian and should be good to go