Add new port print/py-stapler

Stapler is a pure Python alternative to PDFtk, a tool for manipulating PDF
documents from the command line. Like pdftk, stapler is a command-line tool.

With the select command, you can cherry-pick pages from pdfs and concatenate
them into a new pdf file.

The delete command works almost exactly the same as select, but inverse.
It uses the pages and ranges which you didn't specify.

The split command splits the specified pdf files into their single pages and
writes each page into it's own pdf file.

With the zip command, you can cherry-pick pages from pdfs (like select).
The pages from each pdf are merged together in an interleaving manner.
This can be used to collate a pdf with odd pages and a pdf with even pages
into a single file.

The info command shows information on the metadata stored inside a PDF file.

WWW: https://github.com/hellerbarde/stapler
This commit is contained in:
Ben Woods 2017-08-12 05:43:46 +00:00
parent b589d80c30
commit 1c71b4f038
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447816
4 changed files with 47 additions and 0 deletions

View file

@ -201,6 +201,7 @@
SUBDIR += py-reportlab
SUBDIR += py-reportlab1
SUBDIR += py-rtf
SUBDIR += py-stapler
SUBDIR += py-trml2pdf
SUBDIR += py3-fonttools
SUBDIR += py3-pycups

23
print/py-stapler/Makefile Normal file
View file

@ -0,0 +1,23 @@
# Created by: Ben Woods <woodsb02@FreeBSD.org>
# $FreeBSD$
PORTNAME= stapler
PORTVERSION= 0.3.3
CATEGORIES= print python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
#DISTNAME= PyPDF2-${PORTVERSION}
MAINTAINER= woodsb02@FreeBSD.org
COMMENT= Manipulate PDF documents from the command line
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}more-itertools>=2.2:devel/py-more-itertools \
${PYTHON_PKGNAMEPREFIX}pdf2>=1.24:print/py-pdf2
USES= python:2.7+
USE_PYTHON= autoplist distutils
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1502515886
SHA256 (stapler-0.3.3.tar.gz) = 326d2eeb2556e98162d1c2671f944deb912f757469cf0316de121a25d16a6e4a
SIZE (stapler-0.3.3.tar.gz) = 8130

View file

@ -0,0 +1,20 @@
Stapler is a pure Python alternative to PDFtk, a tool for manipulating PDF
documents from the command line. Like pdftk, stapler is a command-line tool.
With the select command, you can cherry-pick pages from pdfs and concatenate
them into a new pdf file.
The delete command works almost exactly the same as select, but inverse.
It uses the pages and ranges which you didn't specify.
The split command splits the specified pdf files into their single pages and
writes each page into it's own pdf file.
With the zip command, you can cherry-pick pages from pdfs (like select).
The pages from each pdf are merged together in an interleaving manner.
This can be used to collate a pdf with odd pages and a pdf with even pages
into a single file.
The info command shows information on the metadata stored inside a PDF file.
WWW: https://github.com/hellerbarde/stapler