1
0
mirror of https://github.com/kanzure/pdfparanoia.git synced 2024-06-10 20:59:52 +02:00
pdfparanoia/README.md
Cathal Garvey 95e92420c9 Modified the "pdfparanoia" script in bin/ so it uses Argparse and the "with" context statement.
As python 2.6 was already commented as a potential environment, there seemed little
reason to not use Argparse rather than a sys.argv popping system; argparse offers
automatically generated usage documentation and can offer useful errors when input
is incorrect.

The "with" context statement is also highly excellent and should be used wherever
legacy support for old-timers using 2.6 is not needed.
2013-03-21 23:37:34 +00:00

1.2 KiB

pdfparanoia

pdfparanoia is a PDF watermark removal library for academic papers. Some publishers include private information like institution names, personal names, ip addresses, timestamps and other identifying information in watermarks on each page.

Installing

Simple.

sudo pip install pdfparanoia

or,

sudo python setup.py install

pdfparanoia is written for python2.7+ or python 3. You will also need to manually install "pdfminer" if you do not use pip to install pdfparanoia.

Usage

import pdfparanoia

pdf = pdfparanoia.scrub(open("nmat91417.pdf", "rb"))

with open("output.pdf", "wb") as file_handler:
    file_handler.write(pdf)

or from the shell,

pdfparanoia --verbose input.pdf -o output.pdf

and,

cat input.pdf | pdfparanoia > output.pdf

Supported

  • AIP
  • IEEE
  • JSTOR
  • SPIE (sort of)

Changelog

  • 0.0.12 - SPIE
  • 0.0.11 - pdfparanoia command-line interface. Use it by either piping in pdf data, or specifying a path to a pdf in the first argv slot.
  • 0.0.10 - JSTOR
  • 0.0.9 - AIP: better checks for false-positives; IEEE: remove stdout garbage.
  • 0.0.8 - IEEE

License

BSD.