Giter VIP home page Giter VIP logo

plugin.image.pdfreader's Introduction

PDF Reader

Codacy Badge

Read your pdf's (ebooks) through Kodi

logo

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.

Limitations

  • 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.

Download

See the Releases page.

API

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)

Screenshots

screen1

screen2

screen3

screen4

plugin.image.pdfreader's People

Contributors

i96751414 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.