2017-11-20, 11:56
Summary
Motivations
The integration of Retroplayer into Kodi Leia will introduce the ability to play retro/old games natively into Kodi. This feature has long been awaited and will clearly differentiate Kodi from other media center apps. Although Leia will be able to play games (or ROMs), a Games database eventually will be added into Kodi so users can browse their games the same way as Movies, TV Series or Music. Games require new types of artwork, including Boxfronts, Boxbacks, Title screenshot, In-game screenshot, etc. Notably, an important asset for Games is the Game Manual. Currently, Game manuals cannot be easily displayed in Kodi.
In addition, many Music album releases, particularly classical music releases, come with booklets that can be backed up in PDF files after scanning them. Having the ability to display these PDF booklets will be an invaluable feature for many music lovers.
Many users in the past have expressed their wish to use Kodi to keep their comic collection organized within Kodi. Previously, launcher plugins like Advanced Launcher were used to call external programs like PDF/CBR viewers in order to display comic collections.
Also many users have expressed their wish to use Kodi to browse and manage their collection of ebooks.
Last but not least, it will be a very interesting feature if TXT files can be displayed from the Kodi File Manager. The ability to see the content of TXT files (in particular XML files) would be extremely useful when setting up Kodi.
Previous work
There has been a number of Kodi addons that enable user to visualize PDF files. PDF Reader is nice but only supports PDF made entirely of images. HyperLauncher uses the auxiliary addon plugin.image.pdfreader which calls GhostScrip to convert each page of the PDF file into a JPG/PNG file, and then display those images. Advanced Emulator Launcher has support in its internal database for Game/ROM manuals but currently is not able to display PDF files.
The idea of Kodi being able to render PDF/TXT and other formats is not new. Here is a long thread started in 2004 to discuss this matter.
Proposal of feature request
I propose to include the Poppler library into Kodi with the purpose of rendering PDF files. Poppler is written in C++, is portable, has a very simple API and it is currently used in many document viewer applications. PDF/TXT files may be display with a code like this
I propose to create a new window similar to DialogTextViewer.xml. DialogTextViewer.xml uses a proportional font and is convenient to display Movie plots, for example. The new window will use a monospaced type font and will be used to render TXT file contents.
I optionally proposed a Documents library database. Users may use this to add media sources containing ebooks in PDF (or other formats), comics, etc.
- I propose to add to Kodi core the ability to read and display TXT and PDF files using the Poppler library.
- Additionally, a Documents library may be added in a similar fashion to the Pictures library.
Motivations
The integration of Retroplayer into Kodi Leia will introduce the ability to play retro/old games natively into Kodi. This feature has long been awaited and will clearly differentiate Kodi from other media center apps. Although Leia will be able to play games (or ROMs), a Games database eventually will be added into Kodi so users can browse their games the same way as Movies, TV Series or Music. Games require new types of artwork, including Boxfronts, Boxbacks, Title screenshot, In-game screenshot, etc. Notably, an important asset for Games is the Game Manual. Currently, Game manuals cannot be easily displayed in Kodi.
In addition, many Music album releases, particularly classical music releases, come with booklets that can be backed up in PDF files after scanning them. Having the ability to display these PDF booklets will be an invaluable feature for many music lovers.
Many users in the past have expressed their wish to use Kodi to keep their comic collection organized within Kodi. Previously, launcher plugins like Advanced Launcher were used to call external programs like PDF/CBR viewers in order to display comic collections.
Also many users have expressed their wish to use Kodi to browse and manage their collection of ebooks.
Last but not least, it will be a very interesting feature if TXT files can be displayed from the Kodi File Manager. The ability to see the content of TXT files (in particular XML files) would be extremely useful when setting up Kodi.
Previous work
There has been a number of Kodi addons that enable user to visualize PDF files. PDF Reader is nice but only supports PDF made entirely of images. HyperLauncher uses the auxiliary addon plugin.image.pdfreader which calls GhostScrip to convert each page of the PDF file into a JPG/PNG file, and then display those images. Advanced Emulator Launcher has support in its internal database for Game/ROM manuals but currently is not able to display PDF files.
The idea of Kodi being able to render PDF/TXT and other formats is not new. Here is a long thread started in 2004 to discuss this matter.
Proposal of feature request
I propose to include the Poppler library into Kodi with the purpose of rendering PDF files. Poppler is written in C++, is portable, has a very simple API and it is currently used in many document viewer applications. PDF/TXT files may be display with a code like this
python:xbmc.executebuiltin('ShowDocument("{0}")'.format('my_file.pdf'))
I propose to create a new window similar to DialogTextViewer.xml. DialogTextViewer.xml uses a proportional font and is convenient to display Movie plots, for example. The new window will use a monospaced type font and will be used to render TXT file contents.
I optionally proposed a Documents library database. Users may use this to add media sources containing ebooks in PDF (or other formats), comics, etc.