This post is relative to two addons. I don't know if it's the best solution but I think there is no better way to show the functioning of PDF Reader than an addon using it, in this case, HQ Online.
PDF Reader (English and Portuguese)
I decided to make an addon to read PDF because I've seen lots of people asking for this feature in XBMC (and also because I wanted to make a comic's addon). I know there are many people who are not in favor of being able to read PDFs on XBMC... but one more addon won't hurt anyone.
Finally, this addon will not read all PDFs because I do not have knowledge to do so. It will read only PDFs composed of images (eg scans, comics)
Some screenshots (In Portuguese):
PDF with thumbnails given by the addon (Possible to change in the settings)
Reading PDF (with a bit of zoom, as you can see)
To zoom, simply use the keys 0 to 9, where 0 is no zoom and 9 the maximum zoom.
How to use PDF Reader on other addons?
To use PDF Reader, you need to do the following:
Add the following line to the xml of your addon (below the line of 'xbmc.python'):
<import addon="plugin.image.pdfreader" version="1.0.0"/>
addon_pdf = xbmc.translatePath('special://home/addons/plugin.image.pdfreader/resources/lib')
from pdf import pdf
pdf = pdf()
dialog = xbmcgui.Dialog()
dialog.ok("Erro!","PDF Reader not found.","Please install it")
#open_settings(): # Open addon settings
#pdf_read(name,url): # Read and play pdf - url = url or filepath
#pdf_type(filepath): # Returns the type of PDF
#pdf_name(filepath): # Returns the name of PDF
#clean_temp(): # Delete temporary files
#You must include 'pdf.' before functions you want to use. Example: pdf.pdf_read(name,url)
HQ Online (Portuguese)
Addon that allows the reading of comics from hqonline.com.br
This site has a not constant html code, so some errors may appear. If it happens, do not hesitate to say. I also want to say that some PDFs from this site are not available because they are changing their servers.
Walking Dead HQ
I hope you like.