-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hello sir/ma'am... Is the library can't get all chapter data? because when I get chapter data/content using
TOCReference selectedChapter = tocReferences.get(0);
String chapterHref = selectedChapter.getCompleteHref();
loadChapterData(chapterHref);
then load it using
private void loadChapterData(String href){
Resource resource = book.getResources().getByHref(href);
if(resource != null){
String mimeType = resource.getMediaType().getName();
if("application/xhtml+xml".equals(mimeType) || "text/html".equals(mimeType)){
String content = new String(resource.getData(), StandardCharsets.UTF_8);
}
}
}
When i get the data from content, it does not load all chapter data. It got cut off specially when there's an image that supposed to display next to text and chapter like illustration display only single image