All Projects

Pdf2Pics

Pdf2Pics is a project that was created to explore methods to enhance client-side PDF rendering performance.

Technologies

Frontend:

Deployment & Infrastructure:

Key Highlights

Key Features

Challenges & Achievements

While PDF.js supports rendering pages using a single web worker, it is limited to rendering one page at a time. This constraint leads to suboptimal performance for projects that require displaying multiple pages simultaneously.

To address this, I modified PDF.js to enable instantiation fully within web workers, making it possible to create multiple workers that independently render pages. This parallelized approach significantly enhanced rendering efficiency.

This solution delivered a 3x performance improvement, reducing the rendering time for a 496-page document from ~15 seconds to ~5 seconds. This optimization stemmed from addressing the inherent limitations of PDF.js by enabling parallel page rendering within multiple web workers.

Deployed Project Link

https://pdf2.pics/