Comments (3)
mebibou, i'm not sure if this helps you but I ran into the same problem and I did the following to fix it. It's probably not the correct solution, but it worked for me.
Replaced the kxml2 dependency in epublib-core with xpp3
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.xpp3</artifactId>
<version>1.1.4c_4</version>
</dependency>
I then replaced line 80 of EpubProcessorSupport.java from:
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
to:
XmlPullParserFactory factory = new org.xmlpull.mxp1.MXParserFactory();
I also commented out line 83:
//result.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
from epublib.
Hi, thanks for the reply.
I actually managed to resolve the issue by adding the -complete version of the library, i.e. by adding epublib-core-3.0-SNAPSHOT-complete.jar instead of the normal one, and it worked much better. Sorry for not closing the ticket before.
from epublib.
you can build project with maven: ~/Github/epublib/epublib-core$ mvn compile dependency:copy-dependencies package
and it will get dependencies into ./target/dependency
folder
you can copy those all in your project.
from epublib.
Related Issues (20)
- Is this library actively maintained? HOT 11
- NCX not found
- Exception when running a basic programme to read an epub.
- HTML resource with ID "toc" preferred over real NCX resource HOT 1
- Infinite loop HOT 1
- I cannβt create a new epub files because of null pointer exception
- The directory name for content should be configurable
- Dependency on org.kxml2 prevents usage of epublib in modules-enabled projects
- Cannot parse the generated epub HOT 2
- nl.siegmann.epublib:epublib-core version 4.0 is not available?! HOT 2
- Fork of your project
- epublib-core could avoid sl4j-simple binding
- error with the content.opf
- Watermark existing EPUB
- dependencies
- can't open file epub create on android
- ERROR nl.siegmann.epublib.viewer.Viewer - Data descriptor signature not found HOT 1
- please release the repo into maven repository HOT 1
- Proguard rules? HOT 1
- Major bug, there is a dead cycle in parsing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epublib.