Go to file
Bryan Bishop cafb7330b6 bump version to 0.0.14 2013-07-09 01:35:23 -05:00
bin Fixed a few bugs so reading from stdin now works. Involves a potentially costly recast of file contents as StringIO. 2013-03-21 23:49:03 +00:00
pdfparanoia fixed self-referential package install and cleaned out __init__.py 2013-07-08 22:48:45 -07:00
tests Adding support for PDF's from pubs.rsc.org 2013-05-13 20:28:35 +01:00
.gitignore comparediffs seems to be working nicely 2013-05-02 22:45:34 +10:00
MANIFEST.in include README.md via MANIFEST.in 2013-02-05 04:17:05 -06:00
Makefile add swap files to make clean 2013-02-06 17:39:42 -06:00
README.md README: write russian intro 2013-05-21 14:02:33 -05:00
requirements.txt create requirements.txt 2013-02-06 00:03:48 -06:00
setup.py bump version to 0.0.14 2013-07-09 01:35:23 -05:00

README.md

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.

pdfparania это библиотека для удаления водяных знаков из PDF файлов научных статей. Некоторые издатели включают личную информацию, такую как названия институтов, имена, IP-адреса, время и дату и другую информацию в водяные знаки содержащиеся на каждой странице.

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
  • RSC
  • SPIE (sort of)

Changelog

  • 0.0.13 - RSC
  • 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.