Read your pdf's (ebooks) through Kodi
PDF Reader is an add-on (image plugin) for Kodi capable of reading PDFs composed of images (e.g. scans, comics). It also serves as a module, so it can be called from other add-ons (see API section).
More info can be found in Kodi's forum.
- Currently PDF Reader can only read pdf files made of pictures, since its operation method's consists of extracting pictures from PDF files.
- Only JPG and PNG types are supported at the moment. If you want to add a new image type, just say.
See the Releases page.
PDF reader can be called from other add-ons regardless their type. To do so, the addon.xml
must contain the following line:
<requires>
...
<import addon="plugin.image.pdfreader"/>
</requires>
Then, just import pdf
and use the available methods:
# PDF Reader class
PDFReader()
read(path)
info()
name()
convert_to_images(save_path=None)
clean_temp()
# CBR/CBZ Reader class
CBXReader()
read(path)
info()
name()
convert_to_images(save_path=None)
clean_temp()
# Play PDF function - can be called regardless the add-on type
# path: PDF url or file path
# compress: Compress data paths when sending request
# is_image_plugin: Set to true if the caller plugin is an image plugin
# return: bool - success
play_pdf(path, compress=True, is_image_plugin=False)