karin
June 7, 2022, 12:26am
1
Which product are you using?
Pdfjs Express
PDF.js Express Version
Detailed description of issue
Unable to support google drive/google cloud generated links
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
every
Link to document
{Provide a link to the document in question if possible}
Code snippet
{Provide a relevant code snippet}
system
June 7, 2022, 12:26am
3
Hello, I’m Ron, an automated tech support bot
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
Guides:
APIs:
Forums:
Hello karin,
Please see these links
You might need to pass an additional auth-token in the load document
Alternatively you might need to call the Google Drive API to get the file directly:
There is an example in there of how to make a GET call to get the file’s contents; you will need to pass certain headers for auth, as well as include your API Key in the URL.
curl \
'https://www.googleapis.com/drive/v3/files/[FILEID]?key=[YOUR_API_KEY]' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--compressed
Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron
1 Like