Skip to content

Commit

Permalink
fix(index): add missing separator 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 533f424 commit 7744abd
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 @@ -337,6 +337,7 @@ in Portable Bitmap (PBM) format.
| [options.scalePageTo] | <code>number</code> | Scales the long side of each page (width for landscape pages, height for portrait pages) to fit in scale-to pixels. The size of the short side will be determined by the aspect ratio of the page. |
| [options.scalePageToXAxis] | <code>number</code> | Scales each page horizontally to fit in scale-to-x pixels. If scale-to-y is set to -1, the vertical size will determined by the aspect ratio of the page. |
| [options.scalePageToYAxis] | <code>number</code> | Scales each page vertically to fit in scale-to-y pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of the page. |
| [options.separator] | <code>string</code> | Specify single character separator between name and page number. |
| [options.singleFile] | <code>boolean</code> | Writes only the first page and does not add digits. |
| [options.thinLineMode] | <code>&#x27;none&#x27;</code> \| <code>&#x27;solid&#x27;</code> \| <code>&#x27;shape&#x27;</code> | Specifies the thin line mode. This defaults to `none`. |
| [options.tiffCompression] | <code>&#x27;none&#x27;</code> \| <code>&#x27;packbits&#x27;</code> \| <code>&#x27;jpeg&#x27;</code> \| <code>&#x27;lzw&#x27;</code> \| <code>&#x27;deflate&#x27;</code> | Set TIFF compression. |
Expand Down
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export class Poppler {
* @param {number=} options.scalePageToYAxis - Scales each page vertically to fit in scale-to-y
* pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of
* the page.
* @param {string=} options.separator - Specify single character separator between name and page number.
* @param {boolean=} options.singleFile - Writes only the first page and does not add digits.
* @param {('none'|'solid'|'shape')=} options.thinLineMode - Specifies the thin line mode. This defaults to `none`.
* @param {('none'|'packbits'|'jpeg'|'lzw'|'deflate')=} options.tiffCompression - Set TIFF compression.
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ class Poppler {
* @param {number=} options.scalePageToYAxis - Scales each page vertically to fit in scale-to-y
* pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of
* the page.
* @param {string=} options.separator - Specify single character separator between name and page number.
* @param {boolean=} options.singleFile - Writes only the first page and does not add digits.
* @param {('none'|'solid'|'shape')=} options.thinLineMode - Specifies the thin line mode. This defaults to `none`.
* @param {('none'|'packbits'|'jpeg'|'lzw'|'deflate')=} options.tiffCompression - Set TIFF compression.
Expand Down Expand Up @@ -732,6 +733,7 @@ class Poppler {
scalePageTo: { arg: "-scale-to", type: "number" },
scalePageToXAxis: { arg: "-scale-to-x", type: "number" },
scalePageToYAxis: { arg: "-scale-to-y", type: "number" },
separator: { arg: "-sep", type: "string" },
singleFile: { arg: "-singlefile", type: "boolean" },
thinLineMode: { arg: "-thinlinemode", type: "string" },
tiffCompression: { arg: "-tiffcompression", type: "string" },
Expand Down

0 comments on commit 7744abd

Please sign in to comment.