Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How do I convert published Google Docs to exportable PDFs? [duplicate]

$
0
0

I have a database containing the URLs to several thousand published Google Doc URLs.

These URLs look like this and are rendered as an HTML page:​https://docs.google.com/document/d/e/<long-unique-id>/pub

Example

​​The formatting of these published docs gets messed up when trying to print the HTML page, ​so I need them to be PDFs -- either in a new tab or downloadable to the file system.

I've tried this PDF URL structure: ​https://docs.google.com/viewer?url=https://docs.google.com/document/d/<another-long-unique-id>/export?format=pdf

Example

...But the ID from the pub version doesn't work with the export version. It would appear that they expect different IDs.

Is there any way to get my existing "/pub" URLs to work as exportable URLs? Or is there a way to reverse engineer pub URLs back to the regular, shareable URLs?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>