Intro

PDF

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

    srcURL to your PDF document
    pageUsed 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

    readyThe PDF is loaded and ready. Event object contains some information about the PDF like `numPages`

Style variables

pdf-page-gapThe gap between pages. Ad to your theme or set on the component. Default is 12px.