Tankōbon / main/services/comic-archive / ComicArchive
Interface: ComicArchive
Defined in: main/services/comic-archive.ts:12
An opened comic file, whatever its format.
Properties
fileCount
readonlyfileCount:number
Defined in: main/services/comic-archive.ts:17
Total entries in the archive (not just image pages).
pages
readonlypages: readonlystring[]
Defined in: main/services/comic-archive.ts:15
Image entry names, sorted in reading order.
path
readonlypath:string
Defined in: main/services/comic-archive.ts:13
Methods
close()
close():
Promise<void>
Defined in: main/services/comic-archive.ts:27
Releases the underlying resources; the archive must not be used afterwards.
Returns
Promise<void>
pageSize()?
optionalpageSize(index):Promise<ImageSize|null>
Defined in: main/services/comic-archive.ts:25
Size in pixels of page index, when the archive can tell without reading the whole page (a PDF knows it from the page's box). Absent for the formats whose pages are image files: the measure then reads their headers.
Parameters
index
number
Returns
Promise<ImageSize | null>
readPage()
readPage(
index):Promise<ComicPage>
Defined in: main/services/comic-archive.ts:19
Reads page index (0-based, in pages order); rejects with a RangeError when out of range.
Parameters
index
number
Returns
Promise<ComicPage>