diff --git a/API.md b/API.md index 31716355..c77af416 100644 --- a/API.md +++ b/API.md @@ -337,6 +337,7 @@ in Portable Bitmap (PBM) format. | [options.scalePageTo] | number | 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] | number | 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] | number | 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] | string | Specify single character separator between name and page number. | | [options.singleFile] | boolean | Writes only the first page and does not add digits. | | [options.thinLineMode] | 'none' \| 'solid' \| 'shape' | Specifies the thin line mode. This defaults to `none`. | | [options.tiffCompression] | 'none' \| 'packbits' \| 'jpeg' \| 'lzw' \| 'deflate' | Set TIFF compression. | diff --git a/src/index.d.ts b/src/index.d.ts index 063fe9a6..39c7461e 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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. diff --git a/src/index.js b/src/index.js index 30b8947c..47567c22 100644 --- a/src/index.js +++ b/src/index.js @@ -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. @@ -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" },