Skip to content

Pdf

feature - image-link

Convert obsidian embed pdf to html embed pdf

Usage

obsidian embed pdf

![[features/pdf/a4-sample.pdf]]

You can also specify the height in pixels for the embedded PDF viewer, by adding #height=[number] to the link. like this : ![[features/pdf/a4-sample.pdf#height=400]]

images/pdf_1.png

html-embed pdf

<object data="/features/pdf/a4-sample.pdf" type="application/pdf" width="100%" height="800px" >
    <embed src="/features/pdf/a4-sample.pdf" type="application/pdf" width="100%" height="800px"/>
</object>

HTML Template

<object data="/{pdf_path}" type="application/pdf" width="100%" height="{height}px" >  
    <embed src="/{pdf_path}" type="application/pdf" width="100%" height="{height}px"/>  
</object>

Comments