Convert Figma logo to code with AI

Top PDF Viewer Libraries

Top 5 Projects Compared

SumatraPDF is a free, open-source PDF, eBook, and comic book reader for Windows, known for its simplicity and speed.

Pros

  • Lightweight and fast, with minimal resource usage compared to many other PDF readers
  • Supports a wide range of file formats beyond PDFs, including ePub, MOBI, CBZ, and DjVu
  • Portable version available, requiring no installation and easy to run from USB drives

Cons

  • Limited annotation and editing features compared to more comprehensive tools like Xournal++
  • Lacks advanced viewing options and customization found in some other readers like Sioyek
  • Windows-only, unlike cross-platform alternatives such as PDF.js-based viewers or ONLYOFFICE DocumentServer

Note: As SumatraPDF is a standalone application and not a code library, a code example is not applicable for this comparison.

Xournal++ is an open-source note-taking application with PDF annotation capabilities, designed as a more feature-rich alternative to Xournal.

Pros

  • Offers extensive handwriting and drawing tools, making it ideal for digital note-taking and sketching.
  • Provides robust PDF annotation features, including highlighting, underlining, and adding text or images.
  • Supports pressure-sensitive input devices, enhancing the natural writing experience.

Cons

  • Limited to desktop platforms, unlike some other projects that offer mobile or web-based solutions.
  • May have a steeper learning curve compared to simpler PDF viewers or annotators.
  • Lacks some advanced PDF manipulation features found in more specialized tools like PDF4QT or SumatraPDF.

wojtekmaj/react-pdf is a React component library for rendering PDF files in web applications.

Code Example

import { Document, Page } from 'react-pdf';

<Document file="sample.pdf">
  <Page pageNumber={1} />
</Document>

Pros

  • Seamless integration with React applications, making it easy to incorporate PDF viewing functionality
  • Supports rendering multiple pages and customizable page controls
  • Actively maintained with regular updates and good documentation

Cons

  • Limited to web-based applications, unlike some other projects that offer desktop or mobile PDF viewers
  • May have performance limitations when rendering large or complex PDF files compared to native viewers
  • Lacks advanced annotation and editing features found in some other PDF tools like xournalpp or ONLYOFFICE/DocumentServer

DImuthuUpe/AndroidPdfViewer is an Android library for rendering PDF files using PdfiumAndroid.

Code Example

PDFView pdfView = findViewById(R.id.pdfView);
pdfView.fromAsset("sample.pdf")
       .load();

Pros

  • Specifically designed for Android, making it easy to integrate into Android applications.
  • Offers smooth scrolling and zooming capabilities for PDF documents.
  • Provides a simple API for loading and displaying PDF files from various sources.

Cons

  • Limited to Android platform, unlike cross-platform solutions like react-pdf or vue-pdf.
  • May have fewer advanced features compared to more comprehensive PDF viewers like sumatrapdf or xournalpp.
  • Lacks annotation and editing capabilities found in some other PDF tools like emacs-application-framework or obsidian-annotator.

Sioyek is a PDF viewer designed for reading research papers and technical documents, with features tailored for academic and scientific literature.

Pros

  • Specialized features for academic reading, such as synctex support and reference jumping
  • Cross-platform compatibility (Windows, macOS, Linux)
  • Lightweight and fast performance compared to more feature-rich alternatives

Cons

  • Limited general-purpose PDF editing capabilities compared to some alternatives
  • Smaller user community and fewer extensions/plugins than more established PDF viewers
  • Lacks advanced collaboration features found in some enterprise-oriented solutions

All Top Projects

sumatrapdfreader's avatar

sumatrapdf

15,486

SumatraPDF reader

xournalpp's avatar

xournalpp

13,528

Xournal++ is a handwriting notetaking software with PDF annotation support. Written in C++ with GTK3, supporting Linux (e.g. Ubuntu, Debian, Arch, SUSE), macOS and Windows 10. Supports pen input from devices such as Wacom Tablets.

wojtekmaj's avatar

react-pdf

10,546

Display PDFs in your React app as easily as if they were images.

DImuthuUpe's avatar

AndroidPdfViewer

8,370

Android view for displaying PDFs rendered with PdfiumAndroid

ahrm's avatar

sioyek

8,220

Sioyek is a PDF viewer with a focus on textbooks and research papers

ONLYOFFICE's avatar

DocumentServer

5,829

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.

pdf2htmlEX's avatar

pdf2htmlEX

5,215

Convert PDF to HTML without losing text or format.

501351981's avatar

vue-office

5,070

支持word(.docx)、excel(.xlsx,.xls)、pdf、pptx等各类型office文件预览的vue组件集合,提供一站式office文件预览方案,支持vue2和3,也支持React等非Vue框架。Web-based pdf, excel, word, pptx preview library

pdfme's avatar

pdfme

3,628

Open-source PDF generation library built with TypeScript and React. Features a WYSIWYG template designer, PDF viewer, and powerful generation capabilities. Create custom PDFs effortlessly in both browser and Node.js environments.

emacs-eaf's avatar

emacs-application-framework

3,349

EAF, an extensible framework that revolutionizes the graphical capabilities of Emacs

react-pdf-viewer's avatar

react-pdf-viewer

2,543

A React component to view a PDF document

FranckFreiburger's avatar

vue-pdf

2,293

vue.js pdf viewer

Visual Copilot logoVisual Copilot
Promo

Turn Figma designs into high-quality code using AI

embedpdf's avatar

embed-pdf-viewer

2,171

A PDF viewer that seamlessly integrates with any JavaScript project

RyotaUshio's avatar

obsidian-pdf-plus

1,767

PDF++: the most Obsidian-native PDF annotation & viewing tool ever. Comes with optional Vim keybindings.

pdfpc's avatar

pdfpc

1,705

A presenter console with multi-monitor support for PDF files.

elias-sundqvist's avatar

obsidian-annotator

1,667

A plugin for reading and annotating PDFs and EPUBs in obsidian.

Cimbali's avatar

pympress

1,400

Pympress is a simple yet powerful PDF reader designed for dual-screen presentations

itsjunetime's avatar

tdf

1,356

A tui-based PDF viewer

ollm's avatar

OpenComic

1,353

Comic and Manga reader, written with Node.js and using Electron

VadimDez's avatar

ng2-pdf-viewer

1,342

📄 PDF Viewer Component for Angular

agentcooper's avatar

react-pdf-highlighter

1,324

Set of React components for PDF annotation

mrmn2's avatar

PdfDing

1,149

Selfhosted PDF manager, viewer and editor offering a seamless user experience on multiple devices.

oguzhaninan's avatar

Buka

1,107

Buka is a modern software that helps you manage your ebook at ease.

JakubMelka's avatar

PDF4QT

1,094

Open source PDF editor.

afreakyelf's avatar

Pdf-Viewer

1,083

A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.

gjTool's avatar

pdfh5

1,059

web/h5/移动端PDF预览插件,可手势缩放。支持npm install和script标签引入

pvginkel's avatar

PdfiumViewer

1,010

PDF viewer based on Google's PDFium.

ttop32's avatar

MouseTooltipTranslator

1,003

Mouseover Translate Any Language At Once - Chrome Extension: PDF Translator, EBOOK, EPUB, OCR, TTS, NETFLIX, YOUTUBE DUAL SUBTITLES, GOOGLE DOCS, AI, VIEWER, GMAIL, WRITING, IMAGE, DUAL SUBS, MANGA, HOVER, DICTIONARY, WEBTOON, EDGE, JAPANESE, ENGLISH