OK, so I’m not overly familiar with google drives different url structures, but this version works.
https://drive.google.com/uc?id=1vH3mS84YQMJJy4rnYps0P83hhD9MSKhi
If your script is writing the file name to the sheet, hopefully you can write the url in the format above. The file ID is the same, but the rest of the url is structured a little different. Just remember that the file has to be placed into a publicly shared folder, or hopefully you can set the permissions as you are generating the PDF.