diff options
author | darcy <darcy@pkgsrc.org> | 2017-03-16 20:07:05 +0000 |
---|---|---|
committer | darcy <darcy@pkgsrc.org> | 2017-03-16 20:07:05 +0000 |
commit | c4748c468a98339042f53996c33bf603172e2a56 (patch) | |
tree | c07b4d61eed364dd73b66a3dc3921a90629386f4 /textproc | |
parent | ebd8d3f473a0ba0c05b083e9f96e062685bb06bd (diff) | |
download | pkgsrc-c4748c468a98339042f53996c33bf603172e2a56.tar.gz |
Add py-pdfrw package, a pure Python library that reads and writes PDFs.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 3 | ||||
-rw-r--r-- | textproc/py-pdfrw/DESCR | 17 | ||||
-rw-r--r-- | textproc/py-pdfrw/Makefile | 18 | ||||
-rw-r--r-- | textproc/py-pdfrw/PLIST | 62 | ||||
-rw-r--r-- | textproc/py-pdfrw/distinfo | 6 |
5 files changed, 105 insertions, 1 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index da6811ab113..3534ba0f3d3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.913 2017/03/16 20:00:39 darcy Exp $ +# $NetBSD: Makefile,v 1.914 2017/03/16 20:07:05 darcy Exp $ # COMMENT= Text processing utilities (does not include desktop publishing) @@ -755,6 +755,7 @@ SUBDIR+= py-natsort SUBDIR+= py-numpydoc SUBDIR+= py-openpyxl SUBDIR+= py-pdf-parser +SUBDIR+= py-pdfrw SUBDIR+= py-phonenumbers SUBDIR+= py-prettytable SUBDIR+= py-pygments diff --git a/textproc/py-pdfrw/DESCR b/textproc/py-pdfrw/DESCR new file mode 100644 index 00000000000..5fd49787ce4 --- /dev/null +++ b/textproc/py-pdfrw/DESCR @@ -0,0 +1,17 @@ +pdfrw is a Python library and utility that reads and writes PDF files: + + * Version 0.2 is tested and works on Python 2.6, 2.7, 3.3, and 3.4. + * Operations include subsetting, merging, rotating, modifying metadata, etc. + * The fastest pure Python PDF parser available + * Has been used for years by a printer in pre-press production + * Can be used with rst2pdf to faithfully reproduce vector images + * Can be used either standalone, or in conjunction with reportlab to reuse + existing PDFs in new ones + * Permissively licensed + +pdfrw will faithfully reproduce vector formats without rasterization, so the +rst2pdf package has used pdfrw for PDF and SVG images by default since March +2010. + +pdfrw can also be used in conjunction with reportlab, in order to re-use +portions of existing PDFs in new PDFs created with reportlab. diff --git a/textproc/py-pdfrw/Makefile b/textproc/py-pdfrw/Makefile new file mode 100644 index 00000000000..a5df320e27e --- /dev/null +++ b/textproc/py-pdfrw/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2017/03/16 20:07:05 darcy Exp $ + +DISTNAME= pdfrw-0.2 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_PYPI:=p/pdfrw/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/pmaupin/pdfrw +COMMENT= PDF file reader/writer pure Python library +LICENSE= mit + +USE_LANGUAGES= # none + +PYTHON_VERSIONS_INCOMPATIBLE= 35 + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-pdfrw/PLIST b/textproc/py-pdfrw/PLIST new file mode 100644 index 00000000000..3d1043a4f0b --- /dev/null +++ b/textproc/py-pdfrw/PLIST @@ -0,0 +1,62 @@ +@comment $NetBSD: PLIST,v 1.1 2017/03/16 20:07:05 darcy Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/pdfrw/__init__.py +${PYSITELIB}/pdfrw/__init__.pyc +${PYSITELIB}/pdfrw/__init__.pyo +${PYSITELIB}/pdfrw/buildxobj.py +${PYSITELIB}/pdfrw/buildxobj.pyc +${PYSITELIB}/pdfrw/buildxobj.pyo +${PYSITELIB}/pdfrw/compress.py +${PYSITELIB}/pdfrw/compress.pyc +${PYSITELIB}/pdfrw/compress.pyo +${PYSITELIB}/pdfrw/errors.py +${PYSITELIB}/pdfrw/errors.pyc +${PYSITELIB}/pdfrw/errors.pyo +${PYSITELIB}/pdfrw/findobjs.py +${PYSITELIB}/pdfrw/findobjs.pyc +${PYSITELIB}/pdfrw/findobjs.pyo +${PYSITELIB}/pdfrw/objects/__init__.py +${PYSITELIB}/pdfrw/objects/__init__.pyc +${PYSITELIB}/pdfrw/objects/__init__.pyo +${PYSITELIB}/pdfrw/objects/pdfarray.py +${PYSITELIB}/pdfrw/objects/pdfarray.pyc +${PYSITELIB}/pdfrw/objects/pdfarray.pyo +${PYSITELIB}/pdfrw/objects/pdfdict.py +${PYSITELIB}/pdfrw/objects/pdfdict.pyc +${PYSITELIB}/pdfrw/objects/pdfdict.pyo +${PYSITELIB}/pdfrw/objects/pdfindirect.py +${PYSITELIB}/pdfrw/objects/pdfindirect.pyc +${PYSITELIB}/pdfrw/objects/pdfindirect.pyo +${PYSITELIB}/pdfrw/objects/pdfname.py +${PYSITELIB}/pdfrw/objects/pdfname.pyc +${PYSITELIB}/pdfrw/objects/pdfname.pyo +${PYSITELIB}/pdfrw/objects/pdfobject.py +${PYSITELIB}/pdfrw/objects/pdfobject.pyc +${PYSITELIB}/pdfrw/objects/pdfobject.pyo +${PYSITELIB}/pdfrw/objects/pdfstring.py +${PYSITELIB}/pdfrw/objects/pdfstring.pyc +${PYSITELIB}/pdfrw/objects/pdfstring.pyo +${PYSITELIB}/pdfrw/pagemerge.py +${PYSITELIB}/pdfrw/pagemerge.pyc +${PYSITELIB}/pdfrw/pagemerge.pyo +${PYSITELIB}/pdfrw/pdfreader.py +${PYSITELIB}/pdfrw/pdfreader.pyc +${PYSITELIB}/pdfrw/pdfreader.pyo +${PYSITELIB}/pdfrw/pdfwriter.py +${PYSITELIB}/pdfrw/pdfwriter.pyc +${PYSITELIB}/pdfrw/pdfwriter.pyo +${PYSITELIB}/pdfrw/py23_diffs.py +${PYSITELIB}/pdfrw/py23_diffs.pyc +${PYSITELIB}/pdfrw/py23_diffs.pyo +${PYSITELIB}/pdfrw/tokens.py +${PYSITELIB}/pdfrw/tokens.pyc +${PYSITELIB}/pdfrw/tokens.pyo +${PYSITELIB}/pdfrw/toreportlab.py +${PYSITELIB}/pdfrw/toreportlab.pyc +${PYSITELIB}/pdfrw/toreportlab.pyo +${PYSITELIB}/pdfrw/uncompress.py +${PYSITELIB}/pdfrw/uncompress.pyc +${PYSITELIB}/pdfrw/uncompress.pyo diff --git a/textproc/py-pdfrw/distinfo b/textproc/py-pdfrw/distinfo new file mode 100644 index 00000000000..451474fdf4b --- /dev/null +++ b/textproc/py-pdfrw/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2017/03/16 20:07:05 darcy Exp $ + +SHA1 (pdfrw-0.2.tar.gz) = 67a64bfdd1c543efe847f13a9a1e521337873e69 +RMD160 (pdfrw-0.2.tar.gz) = 9e46bcdaf58ee4eb0d47f0d36757d4c228c3d215 +SHA512 (pdfrw-0.2.tar.gz) = 4f1ed3b7ddb42969110291b31e02e15e1f98316ede25eaa4d63cdbc443497a278267309769351e04cff52651cdbc44c93771e521cb953ba08d57152f81ee516f +Size (pdfrw-0.2.tar.gz) = 69177 bytes |