跳转到主要内容

一个Python模块,通过禁用活动内容(JavaScript、启动等)使用Ruby Origami PDF解析器来清理PDF文件。

项目描述

ORIGAPY模块

origapy是一个Python模块,通过禁用活动内容(JavaScript、启动等)使用Ruby Origami PDF解析器来清理PDF文件。

它包含Origami PDF解析器的部分版本。

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

需求

  • Python v2.x

  • Ruby v1.8.x

安装

  • 在Windows上,运行install.bat

  • 在其他系统上,运行:setup.py install

如何使用此模块

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

请参阅模块末尾的主要代码和文档字符串。

许可证

GPL v3 - 查看 COPYING.txt。

作者

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

项目详情


支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面