Skip to content

libcr/crpdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

crPDF

crPDF is a lightweight desktop PDF reader built on Chromium Views and PDFium. It lives as a standalone Chromium source-tree target and focuses on a clean native window, fast PDF rendering, document navigation, search, and practical annotation workflows.

Features

  • Open local PDF files from the file picker, command line, recent history, or drag and drop.
  • Continuous and dual-page reading modes.
  • Zoom, rotate, fullscreen, page navigation, and document properties.
  • Text selection, copy, search, and link handling.
  • PDF markup annotations: Highlight, Underline, Squiggly, and Strikethrough.
  • Text note annotations with an in-page icon and overlay preview.
  • Stamp annotations with text, SVG content, shape, color, opacity, drag, and resize support.
  • Recent file history with per-item removal.
  • Localized resources for zh-CN, zh-HK, zh-TW, ar, fr, fr-CA, ru, es, es-419, pt-BR, and pt-PT.

Source Layout

  • crpdf_main.cc - application startup and resource initialization.
  • crpdf_window.* - main window, toolbar, history, drag and drop, and top-level UI.
  • crpdf_frame_view.* - custom frame, titlebar, window controls, and options menu.
  • crpdf_pdf_view.* - PDF loading, rendering, text selection, search, links, annotations, and interaction.
  • crpdf_viz_* and crpdf_context_factory.* - Viz/compositor integration.
  • crpdf_strings.grd and translations/ - UI strings and localized resources.
  • vector_icons/ and SVG assets - annotation and toolbar icons.

Build

This project is intended to be built inside a Chromium checkout.

autoninja -C out/Default crpdf

The main GN target is:

//crpdf:crpdf

Run

out/Default/crpdf /path/to/file.pdf

You can also start crPDF without a file and open a PDF from the UI.

Annotation Notes

crPDF writes standard PDF annotations through PDFium for markup, text notes, and stamps. Some richer visuals are currently rendered by crPDF itself:

  • Text note icons and overlays use crPDF's custom UI.
  • Stamp text, SVG, shape, opacity, drag, and resize behavior are stored as PDF annotation metadata and rendered by crPDF.
  • Stamp appearance streams are not yet generated, so other PDF readers may not display custom stamp visuals exactly as crPDF does.

License

crPDF follows the Chromium source license. See the Chromium LICENSE file in the repository root.

About

A cross-platform PDF application built on the open-source PDFium

Resources

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors