Simplify getting the pdf url.
Merge pull request #3326 from brendandahl/spec-fix

Simplify getting the pdf url.