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.