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": "جارٍ تحميل معالج الصور...",
"converting": "جارٍ التحويل إلى TIFF..."
},
"pdfToCbz": {
"name": "PDF إلى CBZ",
"subtitle": "تحويل ملف PDF إلى ملف CBZ (أرشيف الكتب المصورة) لقارئات القصص المصورة.",
"imageFormat": "تنسيق الصورة",
"quality": "جودة الصورة",
"qualityExplanation": "جودة أعلى = حجم ملف أكبر",
"scale": "المقياس",
"scaleExplanation": "مقياس أعلى = جودة أفضل للشاشات عالية الدقة",
"grayscale": "تحويل إلى تدرج الرمادي",
"manga": "وضع المانغا (من اليمين إلى اليسار)",
"includeMetadata": "تضمين بيانات ComicInfo.xml الوصفية",
"titleLabel": "العنوان",
"seriesLabel": "السلسلة",
"authorLabel": "المؤلف(ون)",
"numberLabel": "#",
"volumeLabel": "المجلد",
"publisherLabel": "الناشر",
"tagsLabel": "الوسوم / النوع",
"yearLabel": "سنة النشر",
"ratingLabel": "التقييم (0-5)",
"converting": "جارٍ التحويل إلى CBZ...",
"alert": {
"invalidFile": "ملف غير صالح",
"invalidFileExplanation": "يرجى تحميل ملف PDF.",
"noFile": "لا يوجد ملف",
"noFileExplanation": "يرجى تحميل ملف PDF أولاً.",
"conversionSuccess": "تم تحويل PDF إلى CBZ بنجاح!",
"conversionError": "فشل تحويل PDF إلى CBZ. قد يكون الملف تالفاً."
}
},
"pdfToGreyscale": {
"name": "PDF إلى تدرج الرمادي",
"subtitle": "تحويل جميع الألوان إلى أبيض وأسود."