generating pdf hangs on rails 4 using PDFkit gem

后端 未结 3 1552
-上瘾入骨i
-上瘾入骨i 2021-01-02 14:08

I\'m able to download pdf file with:

curl google.com | wkhtmltopdf - test.pdf

so it means, wkhtmlpdf installation was successful.

B

3条回答
  •  醉话见心
    2021-01-02 14:52

    I had the same issue in which my log showed the page had rendered however no pdf was generated and the browser would hang. It ended up having nothing to do with OS compatability, missing librariers, gems nor dependencies but instead I needed to raise the max allowable thread count for my Puma server (which had been set to 1) upto 2 or more. This then generated pdf's as normal.

提交回复
热议问题