In my last post I talked about working on an Ebook reader for Owncloud. Well, I have started off with the development.
First, I worked on displaying a list of all PDF files amongst the uploaded files on Owncloud, though not very pretty but clean enough to go ahead. This list is basically a list of links, which when clicked should render the PDF view of the file.
Next, I decided to work on rendering the PDF view for the PDF files I found. This unlike I thought, turned out to be a daunting task. On researching and reading codes I found out that the existing PDF viewer was built very closely to the files app. I needed to use the same div tag ids' used in the files app so that when my app runs, the PDF viewer overloads attribute value of my divs' and renders the PDF view.
So, I carefully included all the divs' at appropriate places and tested. The test run rendered the only the skeleton of the PDF view and not the file inside with a pop-up asking me if I wanted to download the file :D
Guess I need to more deeply study the files app.
No comments:
Post a Comment