Reputation: 101
how to use apache pdfbox port by tom rush in android to display the content of a PDF file as it is ?
Upvotes: 4
Views: 4030
Reputation: 131
You can check out dependencies page of PDFBox documentation.
Here is a quote from the document:
The three PDFBox components are named pdfbox, fontbox and jempbox. The Maven groupId of all PDFBox components is org.apache.pdfbox.
The fontbox and jempbox components are standalone libraries for handling font information and XMP metadata. These components have no external dependencies and can be used simply by adding the respective jar files to the classpath of your application.
The main PDFBox component, pdfbox, has hard dependencies on the fontbox and jempbox components and the commons-logging library.
As it says, there are 2 dependencies, jempbox and fontbox (they are also open-source). Both depend on commons-logging, which can somehow be set to not require log4j, but use standard Java logging API. I don't know exactly if Android fully implements standard Java logging API.
Anyway, if you are using Eclipse, there is no problem in setting source dependencies. Just create a Java project for each library source and set your Android project dependent on those Java projects in its Build Path. I have done this and it's working fine.
Upvotes: 1