Skip to content

Commit

Permalink
refactor!: remove outputEncoding param for pdf routes (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed May 31, 2023
1 parent c2cc116 commit 0d069b1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 64 deletions.
1 change: 0 additions & 1 deletion src/plugins/pdf-to-html/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ async function plugin(server, options) {
"lastPageToConvert",
"noDrm",
"noMergeParagraph",
"outputEncoding",
"ownerPassword",
"userPassword",
"wordBreakThreshold",
Expand Down
1 change: 0 additions & 1 deletion src/plugins/pdf-to-txt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ async function plugin(server, options) {
"maintainLayout",
"noDiagonalText",
"noPageBreaks",
"outputEncoding",
"ownerPassword",
"rawLayout",
"userPassword",
Expand Down
31 changes: 0 additions & 31 deletions src/routes/pdf/html/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,37 +91,6 @@ const pdfToHtmlPostSchema = {
"noMergeParagraph",
S.boolean().description("Do not merge paragraphs")
)
.prop(
"outputEncoding",
S.string()
.default("UTF-8")
.description("Sets the encoding to use for text output")
// Encodings supported by Poppler
.enum([
"ASCII7",
"Big5",
"Big5ascii",
"EUC-CN",
"EUC-JP",
"GBK",
"ISO-2022-CN",
"ISO-2022-JP",
"ISO-2022-KR",
"ISO-8859-6",
"ISO-8859-7",
"ISO-8859-8",
"ISO-8859-9",
"KOI8-R",
"Latin1",
"Latin2",
"Shift-JIS",
"TIS-620",
"UTF-8",
"UTF-16",
"Windows-1255",
"ZapfDingbats",
])
)
.prop(
"ownerPassword",
S.string()
Expand Down
31 changes: 0 additions & 31 deletions src/routes/pdf/txt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,37 +98,6 @@ const pdfToTxtPostSchema = {
"Do not insert page breaks (form feed characters) between pages"
)
)
.prop(
"outputEncoding",
S.string()
.default("UTF-8")
.description("Sets the encoding to use for text output")
// Encodings supported by Poppler
.enum([
"ASCII7",
"Big5",
"Big5ascii",
"EUC-CN",
"EUC-JP",
"GBK",
"ISO-2022-CN",
"ISO-2022-JP",
"ISO-2022-KR",
"ISO-8859-6",
"ISO-8859-7",
"ISO-8859-8",
"ISO-8859-9",
"KOI8-R",
"Latin1",
"Latin2",
"Shift-JIS",
"TIS-620",
"UTF-8",
"UTF-16",
"Windows-1255",
"ZapfDingbats",
])
)
.prop(
"ownerPassword",
S.string()
Expand Down

0 comments on commit 0d069b1

Please sign in to comment.