0.3.4 • Published 7 years ago

tepez-pdf-tools v0.3.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

node-tepez-pdf-tools

A Node.js wrapper for the tepez-pdf-tools command line tool.

Usage

To use with nailgun: The nailgun server be running. If ng (the nailgun client) is not on PATH, then TP_PDF_TOOLS_NG_PATH must point to it.

To use without nailgun: If tepez-pdf-tools.jar is not on working directory, then TP_PDF_TOOLS_JAR_PATH must point to it.

const PdfTools = require('tepez-pdf-tools');

// path
PdfTools({ sourcePath: "c:/in.pdf" }).pipe(fs.createWriteStream('out.pdf'));
  
// content
PdfTools({ sourceContent: "%PDF-1.5..." }).pipe(res);
  
// Optional callback
const stream = PdfTools({ sourceContent: "%PDF-1.5..." }, function(err) {
  if (err) {
    // handle error
  } else {
    // user `stream`
  }
);

Get a report of the form fields in the file

const PdfTools = require('tepez-pdf-tools');

// path
PdfTools({ 
    sourcePath: "c:/in.pdf",
    getFields: true
}).then((fields) => {
    
);
  

Borrows a-lot from node-wkhtmltopdf

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

9 years ago