Skip to main content

A Python module to clean PDF files by disabling active content (javascript, launch, etc), using the Ruby Origami PDF parser.

Project description

ORIGAPY module:

origapy is a Python module to clean PDF files by disabling active content (javascript, launch, etc), using the Ruby Origami PDF parser.

It includes a partial version of the origami PDF parser.

origapy website: http://www.decalage.info/python/origapy origami website: http://www.security-labs.org/origami

REQUIREMENTS:

  • Python v2.x
  • Ruby v1.8.x

INSTALLATION:

  • on Windows, launch install.bat
  • on other systems, launch: setup.py install

HOW TO USE THIS MODULE:

import origapy pc = origapy.PDF_Cleaner() pc.clean(‘file.pdf’, ‘cleaned.pdf’)

See also the main code at the end of the module, and docstrings.

LICENSE:

GPL v3 - See COPYING.txt.

AUTHOR:

Philippe Lagadec - http://www.decalage.info

Project details


Release history Release notifications

This version
History Node

0.09

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page