Skip to content

Commit

Permalink
fix(index): add missing hideannotations option to pdftoppm
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Mar 8, 2021
1 parent f6b7fcb commit ffbe119
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ in Portable Bitmap (PBM) format.
| [options.firstPageToConvert] | <code>number</code> | Specifies the first page to convert. |
| [options.freetype] | <code>&#x27;yes&#x27;</code> \| <code>&#x27;no&#x27;</code> | Enable or disable FreeType (a TrueType / Type 1 font rasterizer). This defaults to `yes`. |
| [options.grayscaleFile] | <code>boolean</code> | Generate grayscale PGM file (instead of a color PPM file). |
| [options.hideAnnotations] | <code>boolean</code> | Hide annotations. |
| [options.jpegFile] | <code>boolean</code> | Generate JPEG file instead a PPM file. |
| [options.lastPageToConvert] | <code>number</code> | Specifies the last page to convert. |
| [options.monochromeFile] | <code>boolean</code> | Generate monochrome PBM file (instead of a color PPM file). |
Expand Down
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ export class Poppler {
* @param {('yes'|'no')=} options.freetype - Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
* This defaults to `yes`.
* @param {boolean=} options.grayscaleFile - Generate grayscale PGM file (instead of a color PPM file).
* @param {boolean=} options.hideAnnotations - Hide annotations.
* @param {boolean=} options.jpegFile - Generate JPEG file instead a PPM file.
* @param {number=} options.lastPageToConvert - Specifies the last page to convert.
* @param {boolean=} options.monochromeFile - Generate monochrome PBM file (instead of a color PPM file).
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ class Poppler {
* @param {('yes'|'no')=} options.freetype - Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
* This defaults to `yes`.
* @param {boolean=} options.grayscaleFile - Generate grayscale PGM file (instead of a color PPM file).
* @param {boolean=} options.hideAnnotations - Hide annotations.
* @param {boolean=} options.jpegFile - Generate JPEG file instead a PPM file.
* @param {number=} options.lastPageToConvert - Specifies the last page to convert.
* @param {boolean=} options.monochromeFile - Generate monochrome PBM file (instead of a color PPM file).
Expand Down Expand Up @@ -705,6 +706,10 @@ class Poppler {
firstPageToConvert: { arg: "-f", type: "number" },
freetype: { arg: "-freetype", type: "string" },
grayscaleFile: { arg: "-gray", type: "boolean" },
hideAnnotations: {
arg: "-hide-annotations",
type: "boolean",
},
jpegFile: { arg: "-jpeg", type: "boolean" },
lastPageToConvert: { arg: "-l", type: "number" },
monochromeFile: { arg: "-mono", type: "boolean" },
Expand Down

0 comments on commit ffbe119

Please sign in to comment.