Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulanger committed Oct 19, 2017
1 parent bb17787 commit 9617e4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pdf.contentStream().on('data', console.log)
pdf.extractImageStream(0).pipe(s.createWriteStream('firstImage.jpg'));

// Promise-based output:
pdf.getPageSizes().then(console.dir);
pdf.getPageSizes().then(console.dir); // requires imagemagick
// [
// {
// "width": "595",
Expand All @@ -85,6 +85,7 @@ be separately installed.
[here](https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg)
as per [this thread](http://stackoverflow.com/questions/32505951/pdftk-server-on-os-x-10-11)
* Ensure you have Ghostscript installed (check by running `gs --version`).
* To use the `getPageSizes` method, you need the imagemagick library, which provides the `identify` executable.
* *(optional)* To extract individual images from a page with the
`extractImageStream()` method, install `pdfimages` with `brew install xpdf` or
`apt-get install poppler-utils`.
Expand All @@ -93,4 +94,4 @@ be separately installed.
- https://www.pdflabs.com/docs/pdftk-man-page/
## Known issues
- `.crop()` doesn't work reliably, if at all.
- `.crop()` doesn't work reliably, if at all.

0 comments on commit 9617e4d

Please sign in to comment.