Skip to content

Commit

Permalink
Merge pull request #41 from Fdawgs/feat/util-options
Browse files Browse the repository at this point in the history
Add new options
  • Loading branch information
Fdawgs committed Jan 12, 2020
2 parents 341db52 + 4aaff1e commit 0739af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class Poppler {
const acceptedOptions = {
complexOutput: { arg: '-c', type: 'boolean' },
exchangePdfLinks: { arg: '-p', type: 'boolean' },
extractHidden: { arg: '', type: 'boolean' },
extractHidden: { arg: '-hidden', type: 'boolean' },
firstPageToConvert: { arg: '-f', type: 'number' },
fontFullName: { arg: '-fontfullname', type: 'boolean' },
ignoreImages: { arg: '-i', type: 'boolean' },
Expand Down Expand Up @@ -549,6 +549,7 @@ class Poppler {
* @param {Boolean=} options.maintainLayout - Maintain (as best as possible) the original physical
* layout of the text. The default is to ´undo' physical layout (columns, hyphenation, etc.) and
* output the text in reading order.
* @param {Boolean=} options.noDiagonalText - Discard diagonal text.
* @param {Boolean=} options.noPageBreaks - Don't insert page breaks (form feed characters)
* between pages.
* @param {String=} options.outputEncoding - Sets the encoding to use for text output.
Expand Down Expand Up @@ -582,6 +583,7 @@ class Poppler {
lastPageToConvert: { arg: '-l', type: 'number' },
listEncodingOptions: { arg: '-listenc', type: 'boolean' },
maintainLayout: { arg: '-layout', type: 'boolean' },
noDiagonalText: { arg: '-nodiag', type: 'boolean' },
noPageBreaks: { arg: '-nopgbrk', type: 'boolean' },
outputEncoding: { arg: '-enc', type: 'string' },
ownerPassword: { arg: '-opw', type: 'string' },
Expand Down

0 comments on commit 0739af4

Please sign in to comment.