Partitioning the book.

93 views
Skip to first unread message

Heinrik

unread,
Feb 3, 2012, 4:14:40 PM2/3/12
to epublib
Amazing library it's great.

I was wondering if there is another way of how the book is
partitioned. At the moment I am doing spine.getResource(); and finding
each part by incrementing the value. Using reference of
http://www.siegmann.nl/static/epublib/apidocs/ . I can only find that
the most simplest form is spine. Also how do you access images since I
am starting to work on images on epub.

The reason why I am using spine is that I am loading off a textview
using each spine pieces as it increments.

So rephrasing my questions "Is the book only being partitioned by
either toc, spine, or guide? If not what would it be and How do you
access or extract the ePub cover image and other images found?.

Thanks, Heinrik.

Paul Siegmann

unread,
Feb 5, 2012, 4:40:01 PM2/5/12
to epublib
Hi Heinrik,

I'm not sure I understand you correctly.
What are you trying to achieve ?
Do you want to read the entire book contents ?
Because that is complicated question that is answered in the faq
(http://www.siegmann.nl/epublib/faq)
Let me know if you have additional questions.

Getting the cover page or image is fortunately easy: try
Book.getCoverImage() or Book.getCoverPage().

regards,
Paul

On Feb 3, 10:14 pm, Heinrik <heinri...@gmail.com> wrote:
> Amazing library it's great.
>
> I was wondering if there is another way of how the book is
> partitioned. At the moment I am doing spine.getResource(); and finding
> each part by incrementing the value. Using reference ofhttp://www.siegmann.nl/static/epublib/apidocs/. I can only find that

Heinrik Honculada

unread,
Feb 6, 2012, 11:47:36 AM2/6/12
to epu...@googlegroups.com
Well I have already achieve what I wanted which was just grab the entire book text contents without images. The way I did it was looping through each individual spine record and  displaying them. What I want to know is that if this is the most efficient way of doing it for the reason of only taking text data? and I want to thank you about the respond of for the reply of getCoverImage() and getCoverPage();

I am still having the getCoverImage or getCoverPage problem. Mind helping me out if you can.

http://stackoverflow.com/questions/9163627/loading-resource-to-bitmap-which-resource-is-taken-from-an-nl-siegmann-epublib
Reply all
Reply to author
Forward
0 new messages