Refs #20843 - Change download.pdf API in order to support dry-run

- Support dry-run by download.pdf which is used by async jobs