> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doczilla.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Enhance PDFs with Paged.js

> Enhance PDFs into beautifully paginated documents with Paged.js.

## What is Paged.js

Paged.js is an open-source library to display paginated content in the browser and to generate print books using web technology.

It contains a set of handlers for CSS transformations and fragmented layout which polyfill the [Paged Media](https://www.w3.org/TR/css-page-3/) and [Generated Content](https://www.w3.org/TR/css-gcpm-3/) CSS modules, along with hooks to create new handlers for custom properties.

The currently supported properties can be found on [the Paged.js website](https://pagedjs.org/documentation/cheatsheet/).

## Example

This example uses the repo by Ashok Khanna to generate a PDF.
The code can be found [here](https://github.com/Doczilla-APP/paged.js-example).

<CodeGroup>
  <Snippet file="code-group/pdf-enhance-with-paged-js.md" />
</CodeGroup>

## Output

<Frame>
  <iframe height={500} width={'100%'} src="https://assets.doczilla.app/examples/pdf-enhance-with-paged-js.pdf" />
</Frame>
