Refactor color input fields and enhance watermark functionality

- Updated color input fields in various HTML pages to remove unnecessary classes for improved styling consistency.
- Modified the watermark node to include options for positioning and flattening watermarks.
- Enhanced the addTextWatermark function to support customizable positioning and page selection for watermarks.
- Added new controls for text and image watermarks in the UI, allowing users to specify text, font size, color, opacity, angle, and image scaling.
- Updated the WASM provider to use the latest version of pymupdf-wasm.
This commit is contained in:
alam00000 committed 2026-02-26 19:40:22 +05:30
1 parent 2e64e8e8d4
commit 88260c26ab
41 files changed
+1512 -383

No files matched your search

+7 -3
View File
@@ -1,6 +1,10 @@
import { PDFDocument as PDFLibDocument } from 'pdf-lib';
export interface AddWatermarkState {
file: File | null;
pdfDoc: PDFLibDocument | null;
}
file: File | null;
pdfDoc: PDFLibDocument | null;
pdfBytes: Uint8Array | null;
previewCanvas: HTMLCanvasElement | null;
watermarkX: number; // 0–1, percentage from left
watermarkY: number; // 0–1, percentage from top (flipped to bottom for PDF)
}