blob: 652977ceb2dec39d30b15ae6c68b8c1413059f6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PDF-URLs
========
Extract all URLs from a PDF file. Facilitates mouseless navigation.
## Examples
Hyperlinks are printed to standard output, one per line:
$ pdf-urls ./testdata/Alice\'s\ Adventures\ in\ Wonderland.pdf
http://www.gutenberg.org/ebooks/11
https://science.nasa.gov/news-article/black-hole-image-makes-history
https://ia800908.us.archive.org/6/items/alicesadventures19033gut/19033-h/images/i002.jpg
This allows them to be easily piped to other programs, like [urlview] or
[extract_url]:
$ pdf-urls ./testdata/Alice\'s\ Adventures\ in\ Wonderland.pdf | urlview
## Install
On Mac OS X, PDF-URLs can be installed with Homebrew:
$ brew install teddywing/formulae/pdf-urls
To compile from source or install on other platforms:
$ cargo install --git https://github.com/teddywing/pdf-urls.git --root /usr/local
## Uninstall
$ cargo uninstall --root /usr/local pdf-urls
## License
Copyright © 2019 Teddy Wing. Licensed under the GNU GPLv3+ (see the included
COPYING file).
[urlview]: https://github.com/sigpipe/urlview
[extract_url]: http://www.memoryhole.net/~kyle/extract_url/
|