Simple Pdf Viewer Component
SimplePDFViewer Component Provides a simple Pdf Viewer For Single page as well as multi page pdf's. Can be setup as a pdf viewer as well as Carousal.
Props
| Property | Type | Description |
|---|---|---|
| apiUrl | string | Url to PDF Document |
| maxWidth | number | Width for viewer |
| isCarousal | boolean | Show as a Carousal |
| pageMargin | number | Margin for pages |
Usage
Here's an example of how to use the SimplePDFViewer component:
Functional Component
App.tsx
import { SimplePdfViewer } from "gbs-fwk-buildingblock";
export default function App() {
return (
<div>
<SimplePdfViewer
apiUrl="https://raw.githubusercontent.com/ananduremanan/Demo/main/The%20Three%20Little%20Pigs.pdf"
isCarousal // Shows as Carousal
/>
</div>
);
}