feat: add option to opt out of embedding full fonts in OCR settings

This commit is contained in:
alam00000
2026-03-21 16:39:51 +05:30
parent b4a2c98497
commit 37b5956bd5
3 changed files with 28 additions and 4 deletions

View File

@@ -121,6 +121,9 @@ async function runOCR() {
);
const binarize = (document.getElementById('ocr-binarize') as HTMLInputElement)
.checked;
const embedFullFonts = (
document.getElementById('ocr-embed-full-fonts') as HTMLInputElement
).checked;
const whitelist = (
document.getElementById('ocr-whitelist') as HTMLInputElement
).value;
@@ -154,6 +157,7 @@ async function runOCR() {
resolution: scale,
binarize,
whitelist,
embedFullFonts,
onProgress: updateProgress,
});