SidPDF Components.

A lightweight, customizable PDF viewing suite for modern web applications.

Config

Add script

Add this script tag before closing the body tag.

<script src="https://siddharth.at/tools/pdf-viewer/api.js"><script>
Component 01

<sidpdf-viewer>

Embeds a fully functional PDF viewer directly into your layout.

Pattern Req Description
srcYesSource PDF URL.
name="{value}"NoBrand Name.
height="{val}"Noe.g., height="70vh"
margin="{val}"Noe.g., margin="10px"
border="{col thick}"Noe.g., border="gray 2px"
no-downloadNoHides download button.
no-headerNoRemoves brand header.
no-controlsNoRemoves zoom/nav bar.
Implementation
<sidpdf-viewer 
  src="sample.pdf"
  name="Business"
  height="70vh"
  margin="8px"
  no-download
  no-controls
  no-header
  border="gray 2px">
</sidpdf-viewer>
Testing

Preview

Select Config
Component 02

<sidpdf-ext>

Opens PDFs in the custom viewer via a new tab.

Attribute Req Description
url="{url}YesThe PDF link.
name="{value}"NoWhite Labeling.
no-downloadNoDisables download button.
Default External Link Restricted Download Link White Label Link
Implementation
<sidpdf-ext 
  url="sample.pdf" 
  name="Business" 
  no-download>
  Read Book
</sidpdf-ext>

Having trouble? Use our SidPDF Widget Builder.