bookexcerpt

1.0.3 • Public • Published

Pure, Petite Program to Prepare PDF Excerpts Painlessly (PPPPPEP) 👏🏿 🎉 🍕

Requirements

Make sure you have PDFtk installed and in your system path.

Mac users - Be aware of this PDFTk issue

Installation

You can easily install it with npm:

npm i bookexcerpt

Make sure excerpts.js is in the directory with the PDFs which you're trying to use this Pure, Petite Program to Prepare PDF Excerpts Painlessly (PPPPPEP).

How to use

This PPPPPEP takes two arguments, the PDF you wish to excerpt ("Main.pdf") and the watermark PDF ("Watermark.pdf")

Run the following command in the directory with both PDFs

node excerpts.js Main.pdf Watermark.pdf

The output is a final PDF titled "Main_excerpt.pdf"

Currently, the excerpter is set to make a pdf excerpt that is no longer than 20% of the total pdf.

Thanks to jjwilly16 for their PDF Toolkit Node Wrapper and my code papas Tim and Daniel for the emotional and technical support.

Also, I still don't know what promises are, even though I use them in this

Package Sidebar

Install

npm i bookexcerpt

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

34.8 kB

Total Files

4

Last publish

Collaborators

  • pizzalabs