Giter Site home page Giter Site logo

nktnet1 / pdfoxjs Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6.7 MB

View and edit PDF documents with customisable VIM keyboard shortcuts

License: MIT License

JavaScript 70.20% TypeScript 0.20% HTML 0.60% CSS 1.90% Fluent 27.10% Shell 0.01%
pdf-annotator pdf-editor pdf-viewer pdfjs pdfjs-viewer vim

pdfoxjs's Introduction

pdfoxjs

View and edit PDF documents with customisable VIM keyboard shortcuts

Cross-platform electron wrapper around Mozilla's pdf.js.

Support features present in the pdf.js v4.0.189 release.

Installation

See the latest release at

Operating System File Extension Example (vX.X.X)
Linux AppImage pdfoxjs-X.X.X.AppImage
MacOS dmg pdfoxjs-X.X.X.dmg
Windows exe pdfoxjs-Setup-X.X.X.exe

Features

Please refer to the original documentation of pdf.js. There is also a demo for modern browsers released by Mozilla here.

Tools View

Toolbar

  • Toggle Sidebar
  • Find in Document (Search)
  • Page Selection
  • Zoom
  • Open File
  • Print
  • Save (Download)
    • This Includes Text, Drawing/Annotation, Filled Form Inputs, and Inserted Images
    • Page Rotations Are Not Saved
  • Insert Text
  • Draw (Annotate)
  • Add/Edit Images
  • Tools
    • Presentation Mode
    • Go to First Page
    • Go to Last Page
    • Rotate Clockwise
    • Rotate Counterclockwise
    • Text Selection Tool
    • Hand Selection Tool
    • Page Scrolling
    • Vertically Scrolling
    • Horizontal Scrolling
    • Wrapped Scrolling
    • No Spread
    • Odd Spread
    • Even Spread

Sidebar

  • Show Thumbnails
  • Show Document Outline
  • Show Attachments
  • Show Layers

Viewer

  • Select Text
    • Copy
    • Search with Google
    • Inspect (only in development mode)
  • Open Links (will open a new tab in your default browser)
  • Fill Forms
    • <TAB> and <SHIFT-TAB> to navigate forward and backward between form inputs
    • <SPACE> inside checkbox to toggle selection
    • <ENTER> in multi-lines input box for new lines

Example PDF

The file public/demo.pdf is a good playground to showcase the features from the viewer.

It is a merged PDF from the following sources:

By default, you can use the double quotation marks key (", i.e. SHIFT + ') to load this document.

Configuration

See public/default.json for an example configuration file. This will contain all defined functions and corresponding settings.

On the initial launch, the default configuration will be copied to the directory userConfig/config.json, which will be within Electron app's userData directory.

On Linux, for a particular username, this could be one of:

/home/username/.config/pdfoxjs/userConfig/config.json
/home/username/.pdfoxjs/userConfig/config.json

depending on how your XDG_CONFIG_HOME is defined.

On MacOS, it will be

~/Library/Application Support/pdfoxjs/userConfig/config.json

On Windows, it will be

%APPDATA%\pdfoxjs\userConfig\config.json

Project Setup (Development)

Setup

$ yarn install

Development

# Transpile and run an electron app
$ yarn start

# Simple express server on localhost
$ yarn dev

Build

# For Windows
$ yarn build:win

# For MacOS
$ yarn build:mac

# For Linux
$ yarn build:linux

pdfoxjs's People

Contributors

dependabot[bot] avatar nktnet1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.