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

[error] Expected ';' when trying to read .pdf file #39

Closed Binhao-Wang closed 4 years ago

Binhao-Wang commented 4 years ago

(base) bhwang@Thinkpad:~/sbttest/foo-build$ sbt "run-main org.allenai.pdffigures2.FigureExtractorBatchCli ~/sbttest/foo-build/zhou2019.pdf"

[info] welcome to sbt 1.3.12 (Oracle Corporation Java 1.8.0_251) [info] loading project definition from /home/bhwang/sbttest/foo-build/project [info] loading settings for project foo-build from build.sbt ... [info] set current project to foo-build (in build file:/home/bhwang/sbttest/foo-build/) [error] Expected ';' [error] run-main org.allenai.pdffigures2.FigureExtractorBatchCli ~/sbttest/foo-build/zhou2019.pdf [error]

Binhao-Wang commented 4 years ago

Use "runMain" instead of "run-main". This wil fix this ';' error.