Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf-stream-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-stream-cli

PDF stream command line

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

PDF stream CLI

Convert PDF to text or JSON

Node.js global module for converting PDF in terminal.

Based on pdf-stream module and PDF.js library.

Table of Contents

Install

Prerequisites

You need Node.js and NPM. Then install node module globally:

  npm i pdf-stream-cli -g

Usage

Output text from PDF URI to STDOUT

  pdf-stream-cli https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf 

Get JSON with text objects from PDF

  pdf-stream-cli --type json https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf ./out/text.json

Show help

  pdf-stream-cli --help

Output:


  pdf-stream-cli [options] [input] [output_file]
  
    Defaults:
      input (file or URI) - STDIN
      output_file         - STDOUT
  
    Options:
  
      -h, --help           output usage information
      -v, --version        output the version number
      -w, --whitespace []  whitespace replacement. Ignored for type `json`. Defaut: `` empty string.
      -t, --type [text]    type: text or json. Default: `text`.


Contribute

Contributors are welcome. Open an issue or submit pull request.

Small note: If editing the README, please conform to the standard-readme specification.

License

Apache 2.0

© Sergey N

Keywords

FAQs

Package last updated on 22 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc