Skip to content

Commit

Permalink
Merge pull request allenai#11 from dirkgr/OpenSource
Browse files Browse the repository at this point in the history
Degrade performance for licensing reasons
  • Loading branch information
dirkgr authored Apr 6, 2017
2 parents 1e95d69 + 0fae8cc commit 78b63f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ To install it you will need an appropriate resolver like:

Then include

`libraryDependencies += "org.allenai" %% "pdffigures2" % "0.0.6"`

Including this package in [jcenter](https://bintray.com/bintray/jcenter) is in progress.
`libraryDependencies += "org.allenai" %% "pdffigures2" % "0.0.10"`

For licensing reasons, PDFFigures2 does not include libraries for some image formats. Without these
libraries, PDFFigures2 cannot process PDFs that contain images in these formats. If you have no
licensing restrictions in your project, we recommend you add these additional dependencies to your
project as well:
```
"com.github.jai-imageio" % "jai-imageio-core" % "1.2.1",
"com.github.jai-imageio" % "jai-imageio-jpeg2000" % "1.3.0", // For handling jpeg2000 images
"com.levigo.jbig2" % "levigo-jbig2-imageio" % "1.6.5", // For handling jbig2 images
```

### Command Line Tools
PDFFigures 2 provides two CLI tools. One, 'FigureExtractorBatchCli', can be used to extract figures
Expand Down Expand Up @@ -175,4 +183,4 @@ relax this assumption to resolve this issue.


## Contact
Christopher Clark, [email protected]
Christopher Clark, [email protected]
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.0",

// So PDFBox can parse more image formats
"com.github.jai-imageio" % "jai-imageio-core" % "1.2.1",
"com.github.jai-imageio" % "jai-imageio-jpeg2000" % "1.3.0", // For handling jpeg2000 images
"com.levigo.jbig2" % "levigo-jbig2-imageio" % "1.6.5", // For handling jbig2 images
// These are disabled by default, because they are not licensed flexibly enough.
//"com.github.jai-imageio" % "jai-imageio-core" % "1.2.1",
//"com.github.jai-imageio" % "jai-imageio-jpeg2000" % "1.3.0", // For handling jpeg2000 images
//"com.levigo.jbig2" % "levigo-jbig2-imageio" % "1.6.5", // For handling jbig2 images

// So PDFBox can parse security enabled but still readable PDFs
"org.bouncycastle" % "bcprov-jdk15on" % "1.54",
Expand Down

0 comments on commit 78b63f6

Please sign in to comment.