ScriptAutomate
08/03/2022, 9:01 PMnotes/assets/*
- Reference in your note like this:
html
<iframe src="/assets/pdf-example.pdf" width="100%" height="500px"></iframe>
Embed example instead of iframe:
html
<embed type="application/pdf" src="/assets/pdf-example.pdf" width="100%" height="500px" title="Example PDF">
Alternately, if wanting it to not appear with PDF settings/buttons for things like downloading, can embed with #toolbar=0
appended to end of PDF link (depending on browser, may or may not work differently - Chromium for me seemed to recognize that it should render differently for me, but not Firefox):
html
<iframe src="/assets/pdf-example.pdf#toolbar=0" width="100%" height="500px"></iframe>
I believe src
can also be a url to a PDF hosted elsewhere, in case not in local vault, too