Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new options #41

Merged
merged 2 commits into from
Jan 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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