Embed PDF files to view on the site #8442
-
|
Good afternoon guys, As the title mentions, is there a way to embed a PDF on the website? I'm using GitHub pages. I know this has been brought up before #3050 (comment), but is there a more straightforward and more modern way than this 2021 version? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello @ArtistYay, By extending the "Markdown image links" the plugin allows for MkDocs to organically handle the relative path resolution. The main difference is that the initial answer embedded the PDFs via Aside from that, the answer from 2021 seems a bit unfocused, like there is no need for the I would go with the |
Beta Was this translation helpful? Give feedback.
Hello @ArtistYay,
depends on what you'd call more straightforward or modern, but following the chain of links you've provided I've found the answer from 2024:
By extending the "Markdown image links" the plugin allows for MkDocs to organically handle the relative path resolution.
The attributes are also set organically via
attr_list.The main difference is that the initial answer embedded the PDFs via
objecttag, and the plugin replaces theimgtags withembed.I've tried to find a clear answer for, what is better
objectorembed, but I could not find it. Both are valid.Aside from that, the answer from 2021 see…