forked from allenai/pdffigures2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request allenai#44 from chrisc36/master
Removes allenai common dependency and publishing info
- Loading branch information
Showing
18 changed files
with
211 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,7 @@ subfigures, the returned figure will include all the subfigures. If a table or f | |
titles or comments, those elements will be included in the figure. | ||
|
||
### Installation | ||
PDFFigures2 is published to bintray at https://bintray.com/allenai/maven. | ||
To install it you will need an appropriate resolver like: | ||
|
||
`resolvers += Resolver.bintrayRepo("allenai", "maven")` | ||
|
||
Then include | ||
|
||
`libraryDependencies += "org.allenai" %% "pdffigures2" % "0.0.11"` | ||
Clone the repo and then run with sbt. | ||
|
||
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 | ||
|
@@ -60,12 +53,12 @@ To run on a PDF and get a preview of the results use: | |
To get a visualization of how the PDF was parsed: | ||
|
||
`sbt "run-main | ||
org.allenai.pdffigures2.FigureExtractorVisualizationCli /path/to/pdf" -r` | ||
org.allenai.pdffigures2.FigureExtractorVisualizationCli /path/to/pdf -r"` | ||
|
||
To get a visualization of all the intermediate steps: | ||
|
||
`sbt "run-main | ||
org.allenai.pdffigures2.FigureExtractorVisualizationCli /path/to/pdf" -s` | ||
org.allenai.pdffigures2.FigureExtractorVisualizationCli /path/to/pdf -s"` | ||
|
||
To run on lots of PDFs while saving the images, figure objects, and run statistics: | ||
|
||
|
@@ -179,22 +172,6 @@ is not part of a figure. This helps avoid false positives induced by including e | |
from the header in figures on the first page, but there is probably a way to | ||
relax this assumption to resolve this issue. | ||
|
||
## Releasing new versions | ||
|
||
This project releases to BinTray. To make a release: | ||
|
||
1. Pull the latest code on the master branch that you want to release | ||
1. Edit `build.sbt` to remove "-SNAPSHOT" from the current version | ||
1. Create a pull request if desired or push to master if you are only changing the version | ||
1. Tag the release `git tag -a vX.Y.Z -m "Release X.Y.Z"` replacing X.Y.Z with the correct version | ||
1. Push the tag back to origin `git push origin vX.Y.Z` | ||
1. Release the build on Bintray `sbt +publish` (the "+" is required to cross-compile) | ||
1. Verify publication [on bintray.com](https://bintray.com/allenai/maven) | ||
1. Bump the version in `build.sbt` on master (and push!) with X.Y.Z+1-SNAPSHOT (e.g., 2.5.1 | ||
-SNAPSHOT after releasing 2.5.0) | ||
|
||
If you make a mistake you can rollback the release with `sbt bintrayUnpublish` and retag the | ||
version to a different commit as necessary. | ||
|
||
## Contact | ||
Christopher Clark, [email protected] | ||
Christopher Clark, [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/main/scala/org/allenai/pdffigures2/FigureExtractorVisualizationCli.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/main/scala/org/allenai/pdffigures2/FormattingTextExtractor.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.