0

I've had a bunch of cases where PDF files were generated for me in response to a POST request, including a token valid for exactly one request.

I can read these PDFs fine in the browser, but if I hit refresh I get served a page telling me that my token expired, as expected.

If I hit the download button or Ctrl+S in the chrome PDF viewer, it fails like this:

enter image description here

Clearly, it's sending a second request for the document, even though it already has it.

How can I actually save this PDF to my computer?

  • What happens if you press control-S? That seems to save pages in Chromium. – DDay Oct 16 '17 at 2:19
  • Same problem - it triggers a page refresh before saving – Eric Oct 16 '17 at 2:19
  • Can you find it in your temporary files? It has to be downloaded somewhere in order to display it to you. – DDay Oct 16 '17 at 2:26
  • @DDay: Indeed, but it might never make it to disk. I'll have a look. – Eric Oct 16 '17 at 2:30
  • I would clear my cache first for ease of checking. – DDay Oct 16 '17 at 2:39
0

You should be able to go to print window by pressing Ctrl+p and then in destination(in left pane) click change and select save as PDF

NOTE: Steps as per google chrome browser

  • That does the trick, but removes the navigation outline from the PDF – Eric Oct 16 '17 at 5:59
  • I am afraid but the only choice left is simple screenshot or full page screenshot but I Hope i am wrong – Harsh Gundecha Oct 16 '17 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.