allenai / pdffigures2

Given a scholarly PDF, extract figures, tables, captions, and section titles.
http://pdffigures2.allenai.org/
Apache License 2.0
600 stars 117 forks source link

Run on Mac & Installation #37

Closed AnirudhDagar closed 3 years ago

AnirudhDagar commented 4 years ago

I just wanted to leave the installation steps for running on Mac OS Catalina.

brew cask install adoptopenjdk/openjdk/adoptopenjdk8
brew install sbt
## Set path variable to use JDK 8
export JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"

Once this is done, just run

sbt "runMain org.allenai.pdffigures2.FigureExtractorVisualizationCli /path/to/pdf"