mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-10 01:14:17 +01:00
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:
1 parent
3ca19af354
commit
e3216dddc5
30 files changed
+2004
No files matched your search
@@ -53,3 +53,4 @@ export * from './bates-numbering-type.ts';
|
||||
export * from './page-preview-type.ts';
|
||||
export * from './add-page-labels-type.ts';
|
||||
export * from './pdf-to-tiff-type.ts';
|
||||
export * from './pdf-to-cbz-type.ts';
|
||||
@@ -0,0 +1,32 @@
|
||||
export interface CbzOptions {
|
||||
imageFormat: 'jpeg' | 'png' | 'webp';
|
||||
quality: number;
|
||||
scale: number;
|
||||
grayscale: boolean;
|
||||
manga: boolean;
|
||||
includeMetadata: boolean;
|
||||
title: string;
|
||||
series: string;
|
||||
number: string;
|
||||
volume: string;
|
||||
author: string;
|
||||
publisher: string;
|
||||
tags: string;
|
||||
year: string;
|
||||
rating: string;
|
||||
}
|
||||
|
||||
export interface ComicMetadata {
|
||||
title?: string;
|
||||
series?: string;
|
||||
number?: string;
|
||||
volume?: string;
|
||||
writer?: string;
|
||||
publisher?: string;
|
||||
genre?: string;
|
||||
year?: string;
|
||||
communityRating?: string;
|
||||
pageCount: number;
|
||||
manga?: boolean;
|
||||
blackAndWhite?: boolean;
|
||||
}
|
||||
Reference in new issue
Block a user