Generates a word cloud from a given PDF
Project description
pdf_to_wordcloud
Generates a word cloud from a given PDF
Installation
$ pip install pdf_to_wordcloud
Arguments
Positional:
PDF: Name of PDF file from which to geneate the wordcloud
Optional:
--remove (-r): Removes word from wordcloud. Accepts multiple arguments (one per flag)
--save (-s): Saves wordcloud as PDF to current directory (no additional argument needed)
--saveto (-st): Saves wordcloud to specified directory
--mask (-m): PNG file to use as shape of wordcloud
--exportdata (-x): Save CSV of word frequency data
--filename (-n): Optional name of data and wordcloud files (omit .pdf/.csv)
Usage
Display wordcloud of file.pdf:
$ pdf file.pdf
Save image of wordcloud as PDF:
$ pdf file.pdf -s
Remove "this" and "that" from wordcloud and save:
$ pdf file.pdf -r this -r that -s
Remove "this" and "that" from wordcloud, export word frequency data and save both files with "my_output" filename:
$ pdf file.pdf -r this -r that -x -n my_output -s
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pdf_to_wordcloud-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51e1ce9075876f5a08b775c0d83e61622e9244e453f3ea7996b04ad0dc806203 |
|
MD5 | 6981f5e82eb42d00edd0c2b94ac7ee31 |
|
BLAKE2b-256 | 62406e43b0619de7d0dcb491993c803cbe5c403be0efb95cdb2c4511b0de3c18 |