4

I have a published Google Docs on my site and I want users to have the option to download the file as a PDF. It's not important if the link will be within the HTML page or on my site.

Link to view PDF version of a Google Doc is old, and not answering my question.

I’m not sure how I can use Making download link to DOMPDF generated pdf on same page, since I need to have that on the HTML/within the Google Docs page, and I can't edit the server pages there.

2
  • The user's system/preferences decide how to handle a PDF file. Short of providing a file type that a browser cannot open (like a zip), there is no way to force a link to a PDF to download versus opening in the browser.
    – phantom42
    Jul 9, 2013 at 14:32
  • @phantom42 I know. I need a link to the PDF. Using instructions, the user will either have to 'right click' save, or view/print from the browser. currently, I only able to get html format - not good for my needs.
    – Saariko
    Jul 10, 2013 at 7:04

3 Answers 3

1

This question was almost already answered here.

To export the document as a PDF, the correct URL is https://docs.google.com/uc?export=pdf&id=YourIndividualID

1
  • This worked for a ZIP, JPG file - and others that are stroed as files. I need it to work for a google doc. and export as PDF
    – Saariko
    Jul 10, 2013 at 7:18
1

For example: docs.google.com/document/d/[FILE_ID]/export?format=pdf

e.g.: docs.google.com/document/d/1-KPW5iiNsmRiloTPMJ6DgQ2tJ4s8UvFXnA_fN1j9Jvk/export?format=pdf

Source

-2

File > Download As > PDF Document (.pdf)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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