From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 3/3] gnu: Add pdfposter. Date: Tue, 8 Nov 2016 22:37:02 +0100 Message-ID: <1478641022-30723-3-git-send-email-h.goebel@crazy-compilers.com> References: <1478641022-30723-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4E4s-0001o9-DL for guix-devel@gnu.org; Tue, 08 Nov 2016 16:37:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4E4r-0005BN-6G for guix-devel@gnu.org; Tue, 08 Nov 2016 16:37:10 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:50327) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4E4q-00059y-Uz for guix-devel@gnu.org; Tue, 08 Nov 2016 16:37:09 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tD2hN0JGfz3hj1F for ; Tue, 8 Nov 2016 22:37:08 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tD2hN0Bjwzvkx5 for ; Tue, 8 Nov 2016 22:37:08 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id XFzrjmEyf_H3 for ; Tue, 8 Nov 2016 22:37:06 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-188-174-133-41.dynamic.mnet-online.de [188.174.133.41]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Tue, 8 Nov 2016 22:37:06 +0100 (CET) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 42EC360E65 for ; Tue, 8 Nov 2016 22:37:02 +0100 (CET) In-Reply-To: <1478641022-30723-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/pdf.scm(pdfposter): New variable. --- gnu/packages/pdf.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index ca3f830..eed37d6 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -855,3 +855,38 @@ of: Note: This module isn't maintained anymore. For new projects please use python-pypdf2 instead.") (license license:bsd-3))) + +(define-public pdfposter + (package + (name "pdfposter") + (version "0.6.0") + (source (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/p" + "/pdftools.pdfposter/" + "pdftools.pdfposter-" version ".tar.bz2")) + ;(uri (pypi-uri "pdftools.pdfposter" version)) + (sha256 + (base32 + "1i9jqawf279va089ykicglcq4zlsnwgcnsdzaa8vnm836lqhywma")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; no tests + #:python ,python-2)) + (inputs + ;; pdfposter 0.6.0 still uses the old pyPdf + `(("python2-pypdf" ,python2-pypdf))) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))) + (home-page "https://pythonhosted.org/pdftools.pdfposter/") + (synopsis "Scale and tile PDF images/pages to print on multiple pages") + (description " @command{pdfposter} can be used to create a large poster by +building it from multple pages and/or printing it on large media. It expects +as input a PDF file, normally printing on a single page. The output is again +a PDF file, maybe containing multiple pages together building the poster. The +input page will be scaled to obtain the desired size. + +This is much like @command{poster} does for Postscript files, but working with +PDF. Since sometimes @command{poster} does not like your files converted from +PDF. :-) Indeed @command{pdfposter} was inspired by @command{poster}.") + (license license:gpl3+))) -- 2.7.4