Skip to main content
Participant
December 25, 2022
Question

PDF embed API - File preview error

  • December 25, 2022
  • 0 replies
  • 302 views

Hi. I want to embed PDF on my website by API but got a File preview error.

The demo file run well, as I added the credential of my website.

 

The following link is my website to conduct PDF embed:

https://gyulab.github.io//projects/2021/12/06/temp.html

And the github link to view code:

https://github.com/gyulab/gyulab.github.io/blob/master/_posts/Projects/2021-10-15-temp.md

 

As you see, using <iframe> or <embed> shows the file, but the file with API not working.

 

I have tried to alter the url as follows, but none of these work:

1) Google Drive Preview file: https://drive.google.com/file/d/1rkZbHboUDY52Shh0kEoPs_rF7NYesnmq/preview

 

2) Github directory:

_posts/Projects/MS482_Report_20180583_Gyujun_Jeong.pdf

 

3) Github direct link (raw file): ttps://github.com/gyulab/gyulab.github.io/raw/9113cbc5602d0fb3177408304d38be8e99c8c72f/_posts/Projects/MS482_Report_20180583_Gyujun_Jeong.pdf

 

All solution would be appreciated.

 

 

This topic has been closed for replies.