Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update readme #6

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.