1
0
mirror of https://github.com/kanzure/pdfparanoia.git synced 2024-12-03 14:35:51 +01:00
Go to file
2020-09-07 09:33:54 -05:00
bin use io.StringIO when py3k 2013-07-19 21:25:42 -05:00
pdfparanoia bump version to 0.0.17 2020-09-07 09:33:08 -05:00
tests start fixing some tests 2020-09-07 09:28:59 -05:00
.gitignore comparediffs seems to be working nicely 2013-05-02 22:45:34 +10:00
Makefile further updates to Makefile 2020-09-07 09:33:54 -05:00
MANIFEST.in include README.md via MANIFEST.in 2013-02-05 04:17:05 -06:00
README.md README: fix typo in russian text 2016-02-25 08:45:27 -06:00
requirements.txt Package: use a version of PDFMiner since the interface change (#37). 2013-12-07 07:23:47 +08:00
setup.py render markdown on pypi 2020-09-07 09:21:19 -05:00

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.

pdfparanoia это библиотека для удаления водяных знаков из 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. For python versions prior to Python 3, use "pdfminer" from the Python Package Index (http://pypi.python.org). For recent versions of Python, use pdfminer3k instead.

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.