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.

Pros

  • Lightweight and fast performance compared to many other PDF readers
  • Supports a wide range of file formats beyond just PDFs
  • Simple, clean interface with minimal distractions

Cons

  • Limited annotation and editing features compared to more comprehensive tools like Xournal++
  • Windows-only, unlike cross-platform options such as react-pdf or vue-pdf
  • Fewer advanced features for academic or professional use compared to specialized tools like Sioyek or Obsidian Annotator

Xournal++ is an open-source note-taking software 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 collaborative features found in office suite solutions like ONLYOFFICE DocumentServer.

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

Code Example

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

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

Pros

  • Specifically designed for React applications, offering seamless integration
  • Provides a high level of customization and control over PDF rendering
  • Supports both client-side and server-side rendering

Cons

  • Limited to web-based applications, unlike some other projects that offer desktop or mobile support
  • May have a steeper learning curve compared to simpler PDF viewers
  • Lacks advanced annotation features found in some specialized PDF tools

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 easier to integrate into Android apps
  • Offers a simple API for loading and displaying PDF files
  • Supports zooming, scrolling, and page navigation out of the box

Cons

  • Limited to Android platform, unlike cross-platform solutions like react-pdf or vue-pdf
  • May have fewer advanced features compared to full-fledged PDF readers like Sumatra PDF
  • Lacks annotation and editing capabilities found in some other projects like Xournal++

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
  • Fast and lightweight compared to more complex document viewers or office suites
  • Cross-platform compatibility (Windows, macOS, Linux)

Cons

  • Limited to PDF format, unlike some multi-format viewers or office suites
  • Fewer general-purpose annotation tools compared to some alternatives like Xournal++
  • Not web-based or easily embeddable in web applications, unlike some PDF viewing libraries

All Top Projects

sumatrapdfreader's avatar

sumatrapdf

14,485

SumatraPDF reader

xournalpp's avatar

xournalpp

12,407

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

9,962

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

DImuthuUpe's avatar

AndroidPdfViewer

8,270

Android view for displaying PDFs rendered with PdfiumAndroid

ahrm's avatar

sioyek

7,713

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

ONLYOFFICE's avatar

DocumentServer

5,252

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

4,862

Convert PDF to HTML without losing text or format.

501351981's avatar

vue-office

4,510

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

emacs-eaf's avatar

emacs-application-framework

3,230

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

pdfme's avatar

pdfme

3,049

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.

react-pdf-viewer's avatar

react-pdf-viewer

2,402

A React component to view a PDF document

FranckFreiburger's avatar

vue-pdf

2,263

vue.js pdf viewer

Visual Copilot logoVisual Copilot
Promo

Turn Figma designs into high-quality code using AI

pdfpc's avatar

pdfpc

1,618

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

elias-sundqvist's avatar

obsidian-annotator

1,591

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

VadimDez's avatar

ng2-pdf-viewer

1,318

📄 PDF Viewer Component for Angular

Cimbali's avatar

pympress

1,280

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

RyotaUshio's avatar

obsidian-pdf-plus

1,267

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

agentcooper's avatar

react-pdf-highlighter

1,197

Set of React components for PDF annotation

ollm's avatar

OpenComic

1,111

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

oguzhaninan's avatar

Buka

1,100

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

itsjunetime's avatar

tdf

1,013

A tui-based PDF viewer

gjTool's avatar

pdfh5

1,013

web/h5/移动端PDF预览插件