feat: add Bates numbering tool with PDF processing capabilities

- Implemented bates-numbering-page.ts for handling Bates numbering logic.
- Created a new HTML page for Bates numbering functionality.
- Added style presets and file handling for multiple PDF uploads.
- Integrated user interface elements for file selection, style customization, and preview.
- Enhanced main.ts to support collapsible categories and compact mode for tool grid.
- Updated types for Bates numbering in bates-numbering-type.ts.
- Registered the new tool in tools.html and updated routing in vite.config.ts.
This commit is contained in:
alam00000
2026-02-21 14:05:38 +05:30
parent 7313fa08a8
commit 3cae20a10c
26 changed files with 1443 additions and 21 deletions

View File

@@ -0,0 +1,17 @@
export interface StylePreset {
template: string;
padding: number;
}
export type Position =
| 'bottom-center'
| 'bottom-left'
| 'bottom-right'
| 'top-center'
| 'top-left'
| 'top-right';
export interface FileEntry {
file: File;
pageCount: number;
}

View File

@@ -49,3 +49,4 @@ export * from './email-to-pdf-type.ts';
export * from './bookmark-pdf-type.ts';
export * from './scanner-effect-type.ts';
export * from './adjust-colors-type.ts';
export * from './bates-numbering-type.ts';