Skip to content

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

Ektimo/pdf-slice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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