Skip to content
forked from Ektimo/pdf-slice

Node.js tool for slicing PDF into single-page PDFs, searching for given keywords. Optionally password protects and mail the results.

License

Notifications You must be signed in to change notification settings

doblak/pdf-slice

This branch is up to date with Ektimo/pdf-slice:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7a77d4a · Dec 11, 2018

History

12 Commits
Nov 20, 2018
Dec 11, 2018
Nov 20, 2018
Nov 20, 2018
Nov 20, 2018
Dec 11, 2018
Dec 11, 2018
Dec 11, 2018
Nov 20, 2018
Nov 20, 2018

Repository files navigation

pdf-slice

Functionality:

  • Slice a milti-page PDF by pages into multiple PDFs.
  • Inspect all PDFs and find keyword matches for configuration.
  • (optionally) password protect and mail PDFs to given mail addresses

Example:

example

Environment/prerequisites:

  • Docker OR
  • Local environment with:
    • Node.js 8
    • pdftk (and maybe for some actions even ghostscript), scissors depends on them
    • If mailing/password protecting: qpdf, node-qpdf depends on it

Run

  • Put pdf file into ./pdfs/
  • Create config.json. See config.json.draft and config.ts for definitions. Password is optional (not protected if missing). Mail is optional (uses default name.surname@domain)

Docker:

  • docker build -t pdf-slice .
  • docker run -it -v "$(pwd)"/pdfs:/app/pdfs pdf-slice node ./built/main.js sample.pdf

Local:

  • npm run build
  • manual run: node ./built/main.js sample.pdf

Use at your own risk.

About

Node.js tool for slicing PDF into single-page PDFs, searching for given keywords. Optionally password protects and mail the results.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.6%
  • Dockerfile 2.4%