[#69574156] Refactors PDF Generation command.

Signed-off-by: Nikhil Gajwani <ngajwani@pivotallabs.com>