ISCC - EPUB Processing#
EPUB handling module.
epub_thumbnail(fp)
#
Creat thumbnail from EPUB document cover image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath to EPUB document. |
required |
Returns:
Type | Description |
---|---|
Image.Image
|
Thumbnail image as PIL Image object |
epub_meta_embed(fp, meta)
#
Embed metadata into a copy of the EPUB file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath to source EPUB file |
required |
meta |
IsccMeta
|
Metadata to embed into EPUB |
required |
Returns:
Type | Description |
---|---|
str
|
Filepath to the new PDF file with updated metadata |