[frontend] PdfController: cleanup the composing of download urls GitOrigin-RevId: 599d9cb2fca1d75ca15cbb1bef7561215ee31aef