feat: add PDF to CBZ conversion tool with metadata support

- Updated main.ts to include 'PDF to CBZ' in the tools list.
- Added new types for CBZ options and comic metadata in pdf-to-cbz-type.ts.
- Implemented comic-info utility functions for generating ComicInfo.xml and metadata OPF files.
- Created pdf-to-cbz.html page with UI for PDF to CBZ conversion, including options for image format, quality, and metadata.
- Updated vite.config.ts to route to the new PDF to CBZ page.
This commit is contained in:
alam00000
2026-03-24 14:55:51 +05:30
parent 3ca19af354
commit e3216dddc5
30 changed files with 2004 additions and 0 deletions

View File

@@ -289,6 +289,36 @@
"loadingVips": "Beeldprocessor laden...",
"converting": "Converteren naar TIFF..."
},
"pdfToCbz": {
"name": "PDF naar CBZ",
"subtitle": "Converteer een PDF naar een CBZ (Comic Book Archive) bestand voor striplezers.",
"imageFormat": "Afbeeldingsformaat",
"quality": "Beeldkwaliteit",
"qualityExplanation": "Hogere kwaliteit = groter bestandsformaat",
"scale": "Schaal",
"scaleExplanation": "Hogere schaal = betere kwaliteit voor hoge-resolutieschermen",
"grayscale": "Converteren naar grijswaarden",
"manga": "Mangamodus (rechts-naar-links)",
"includeMetadata": "ComicInfo.xml-metadata opnemen",
"titleLabel": "Titel",
"seriesLabel": "Serie",
"authorLabel": "Auteur(s)",
"numberLabel": "#",
"volumeLabel": "Vol.",
"publisherLabel": "Uitgever",
"tagsLabel": "Tags / Genre",
"yearLabel": "Publicatiejaar",
"ratingLabel": "Beoordeling (0-5)",
"converting": "Converteren naar CBZ...",
"alert": {
"invalidFile": "Ongeldig bestand",
"invalidFileExplanation": "Upload een PDF-bestand.",
"noFile": "Geen bestand",
"noFileExplanation": "Upload eerst een PDF-bestand.",
"conversionSuccess": "PDF succesvol geconverteerd naar CBZ!",
"conversionError": "Kan PDF niet converteren naar CBZ. Het bestand is mogelijk beschadigd."
}
},
"pdfToGreyscale": {
"name": "PDF naar Grijswaarden",
"subtitle": "Converteer alle kleuren naar zwart-wit."