Add visual workflow builder, fix critical bugs, and add Arabic i18n support

This commit is contained in:
alam00000
2026-02-08 17:05:40 +05:30
parent 36ebb3b429
commit 5d8b83e105
118 changed files with 14151 additions and 2357 deletions

View File

@@ -6,9 +6,8 @@ import {
getPDFDocument,
} from '../utils/helpers.js';
import { state } from '../state.js';
import { createIcons, icons } from 'lucide';
import { PDFDocument } from 'pdf-lib';
import { isWasmAvailable, getWasmBaseUrl } from '../config/wasm-cdn-config.js';
import { createIcons, icons } from 'lucide';
import { showWasmRequiredDialog } from '../utils/wasm-provider.js';
import { loadPyMuPDF, isPyMuPDFAvailable } from '../utils/pymupdf-loader.js';
import * as pdfjsLib from 'pdfjs-dist';
@@ -121,15 +120,6 @@ async function performCondenseCompression(
return { ...result, usedFallback: true };
}
if (
errorMessage.includes('closed or encrypted') ||
errorMessage.includes('encrypted')
) {
throw new Error(
'This PDF is encrypted or password-protected. Please remove the password first using the Unlock PDF tool, then try compressing again.'
);
}
throw new Error(`PDF compression failed: ${errorMessage}`);
}
}