Skip to content

Commit

Permalink
fix(index): add missing forcepagenumber 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 ec45b5b commit 533f424
Show file tree
Hide file tree
Showing 3 changed files with 4 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.evenPagesOnly] | <code>boolean</code> | Generates only the even numbered pages. |
| [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.forcePageNumber] | <code>boolean</code> | Force page number even if there is only one page. |
| [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. |
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 {number=} options.firstPageToConvert - Specifies the first page to convert.
* @param {('yes'|'no')=} options.freetype - Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
* This defaults to `yes`.
* @param {boolean=} options.forcePageNumber - Force page number even if there is only one page.
* @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.
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ class Poppler {
* @param {number=} options.firstPageToConvert - Specifies the first page to convert.
* @param {('yes'|'no')=} options.freetype - Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
* This defaults to `yes`.
* @param {boolean=} options.forcePageNumber - Force page number even if there is only one page.
* @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.
Expand Down Expand Up @@ -709,6 +710,7 @@ class Poppler {
displayProfile: { arg: "-displayprofile", type: "string" },
evenPagesOnly: { arg: "-e", type: "boolean" },
firstPageToConvert: { arg: "-f", type: "number" },
forcePageNumber: { arg: "-forcenum", type: "boolean" },
freetype: { arg: "-freetype", type: "string" },
grayscaleFile: { arg: "-gray", type: "boolean" },
hideAnnotations: {
Expand Down

0 comments on commit 533f424

Please sign in to comment.