diff --git a/API.md b/API.md index 3805af93..24b56eb3 100644 --- a/API.md +++ b/API.md @@ -319,6 +319,7 @@ in Portable Bitmap (PBM) format. | [options.firstPageToConvert] | number | Specifies the first page to convert. | | [options.freetype] | 'yes' \| 'no' | Enable or disable FreeType (a TrueType / Type 1 font rasterizer). This defaults to `yes`. | | [options.grayscaleFile] | boolean | Generate grayscale PGM file (instead of a color PPM file). | +| [options.hideAnnotations] | boolean | Hide annotations. | | [options.jpegFile] | boolean | Generate JPEG file instead a PPM file. | | [options.lastPageToConvert] | number | Specifies the last page to convert. | | [options.monochromeFile] | boolean | Generate monochrome PBM file (instead of a color PPM file). | diff --git a/src/index.d.ts b/src/index.d.ts index aab93b8f..e1ef8d11 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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). diff --git a/src/index.js b/src/index.js index 1e0fbcfe..fef5f999 100644 --- a/src/index.js +++ b/src/index.js @@ -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). @@ -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" },