Skip to content

Chapter being cut #6

@WarLock03

Description

@WarLock03

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions