ndy2 / mkdocs-obsidian-support-plugin

A MkDocs plugin that supports obsidian to mkdocs convert
https://ndy2.github.io/mkdocs-obsidian-support-plugin/
MIT License
15 stars 5 forks source link

Render PDF Files #3

Closed jokulab closed 8 months ago

jokulab commented 1 year ago

Hi,

I wanted to ask if it would be possible to also render the pdfs tat can be rendered in Obsidian (with ![[test.pdf]]). This probably could be achieved with a iframe or something else.

I hope this is possible to implement, because there is literally no other plugin out there that can do this.

Regards

ndy2 commented 1 year ago

Thank you for your suggestion.

markdown

![[sample.pdf]]

rendered

I would try on above sterategy. But i'm a bit busy these days, so I think it will take up to 2 weeks.

ndy2 commented 8 months ago

Sorry for late reply. I tried this. But with my bad frontend knoledge, i was not able to make responsive and cool looking ui for embedded pdf. Also there should be some another libary like pypdf to get the width and height of the given pdf which is over the range of this plugin.

This plugin should provide simple regex based syntax transport, not dynamic resolution for some contnent. If you requires the dynamic conversion like this, I suggest mkdocs-macro as a solution for it.

Somehow i would remain this issue as open. Someone who can implement this feature without other dependencies and only with some extra css and html conversion, please help with this issue

ndy2 commented 8 months ago

@jokulab ! I add requested feature in new release. It was quite late. Again, Sorry for late reply. You can see https://ndy2.github.io/mkdocs-obsidian-support-plugin/features/pdf/ to see the usage with examples