allenai / allenai/pdffigures

[low priority] Some feature requests

Offen
#8 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
130
Forks
23
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'd like to request 3 low priority features:
1. output as one pdf file instead of multiple png
2. include _all_ pdf pages are included (not just ones containing figures) so that I can check for missed figures/tables/captions
3. allow prefix to be specified once when using -a and -j options together

Feature 1 can be achieved with imagemagick easily:

```
# cd to folder containing pdf files to parse and
PREFIX=/path/to/output/fileprefix
for filepath in *.pdf; do
echo processing $filepath ...
file="${filepath%.*}"
pdffigures -a "$PREFIX/$file" -j "$PREFIX/$file" $file.pdf
#imagemagick convert
convert `ls $PREFIX/$file*.png` "$PREFIX/$file.pdf"
rm `ls $PREFIX/$file*.png`
done;
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.