Skip to content

Commit

Permalink
chore: update readme (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 authored Feb 10, 2023
1 parent 5e472a5 commit 2d94573
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ Finally, set the file path in the `src` attribute of the `<embed-pdf>` tag.
<embed-pdf src="./path/to/file.pdf"></embed-pdf>
```

![screenshot](./_tools/screenshot.png)
By default, this library uses the browser's built-in PDF embedding support to
display PDFs. Switch to rendering using pdf.js only if the built-in PDF
rendering is not available. This will keep the download size to a minimum.

If you want to see how this works in action, check out the
If you want to see how this works, check out the
[demo page](https://embed-pdf-element-demo.deno.dev/_tools/test.html)!

![screenshot](./_tools/screenshot.png)

By default, this library uses pdf.js in the [vendor directory](./vendor/) to
render PDFs. Alternatively, to use the latest version of pdf.js directly from
the official site, set it using JavaScript as follows:
Expand Down
Binary file modified _tools/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2d94573

Please sign in to comment.