feat(workflow): add altenate merge tool and translate workflow node and engine errors across locales

This commit is contained in:
alam00000
2026-04-30 13:16:48 +05:30
parent 0040317e48
commit ef3dab5aeb
74 changed files with 2552 additions and 1077 deletions
@@ -6,6 +6,7 @@ import { requirePdfInput, processBatch } from '../types';
import { PDFDocument } from 'pdf-lib';
import * as pdfjsLib from 'pdfjs-dist';
import { loadPdfDocument } from '../../utils/load-pdf-document.js';
import { wfError } from '../errors';
export class RemoveBlankPagesNode extends BaseWorkflowNode {
readonly category = 'Edit & Annotate' as const;
@@ -76,7 +77,7 @@ export class RemoveBlankPagesNode extends BaseWorkflowNode {
}
if (nonBlankIndices.length === 0) {
throw new Error('All pages are blank');
throw new Error(wfError('removeBlankPagesAllBlank'));
}
const newDoc = await PDFDocument.create();