Simplify getting the pdf url.

Part of the feedback from https://bugzilla.mozilla.org/show_bug.cgi?id=871530#c5