Intro
A single toddle component to render PDFs anywhere on your apps.
This package is still work in progress. More features will come, but feel free to suggest features or join the project by messaging me on Discord https://discord.gg/toddle - @jacobkofoed
Demo
Loading PDF
Components
-
pdf
Attributes
src URL to your PDF document page Used to render only a specific page. This can be used together with Intersection Observer etc. to render pages as they come into view. Default (null) renders all pages. Events
ready The PDF is loaded and ready. Event object contains some information about the PDF like `numPages`
Style variables
pdf-page-gap | The gap between pages. Ad to your theme or set on the component. Default is 12px. |