PDF Format differences when generated from queue vs non-queued

Hello,

Just posting if helps someone.

I’m trying generate PDF of multiple docs and combining into one. Since the number of docs is high, I’m trying to run the job in a background thread.

The Problem : If I run this in a foreground thread, it generates PDF in correct format. But if its queued, the output is distorted. There’s no difference in the method being invoked to generate PDF.

Solution: While posting this question (after eliminating all obvious reasons), found solution in below thread.

Regards,
Vamyip

1 Like

That also explained slow speed of PDF generation when ran from background queue. It must be the failing http requests that delayed wkhtmltopdf’s engine.