Skip to content

Commit

Permalink
fix(routes/pdf): add a few extra charsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 23, 2023
1 parent 8d9e109 commit 1c25064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/pdf/html/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const pdfToHtmlPostSchema = {
.description("Sets the encoding to use for text output")
// Encodings supported by Poppler
.enum([
"ASCII7",
"Big5",
"Big5ascii",
"EUC-CN",
Expand All @@ -111,12 +112,14 @@ const pdfToHtmlPostSchema = {
"ISO-8859-8",
"ISO-8859-9",
"KOI8-R",
"Latin1",
"Latin2",
"Shift-JIS",
"TIS-620",
"UTF-8",
"UTF-16",
"Windows-1255",
"ZapfDingbats",
])
)
.prop(
Expand Down
3 changes: 3 additions & 0 deletions src/routes/pdf/txt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const pdfToTxtPostSchema = {
.description("Sets the encoding to use for text output")
// Encodings supported by Poppler
.enum([
"ASCII7",
"Big5",
"Big5ascii",
"EUC-CN",
Expand All @@ -122,12 +123,14 @@ const pdfToTxtPostSchema = {
"ISO-8859-8",
"ISO-8859-9",
"KOI8-R",
"Latin1",
"Latin2",
"Shift-JIS",
"TIS-620",
"UTF-8",
"UTF-16",
"Windows-1255",
"ZapfDingbats",
])
)
.prop(
Expand Down

0 comments on commit 1c25064

Please sign in to comment.