From owner-freebsd-questions@freebsd.org Tue Nov 1 15:18:10 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 189C9C28DF7 for ; Tue, 1 Nov 2016 15:18:10 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from hz.citrin.ru (hz.citrin.ru [88.198.212.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2DCB1791 for ; Tue, 1 Nov 2016 15:18:09 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from x220.lan (c-24-60-168-172.hsd1.ct.comcast.net [24.60.168.172]) by hz.citrin.ru (Postfix) with ESMTPSA id B419F2869E9 for ; Tue, 1 Nov 2016 15:17:59 +0000 (UTC) Subject: Re: splitting A1 size PDF into 4 pages A4 To: freebsd-questions@freebsd.org References: <20161101143150.GA4952@c720-r292778-amd64> From: Anton Yuzhaninov Message-ID: <99eced5c-dd7d-dd10-3320-c6d0d327e871@citrin.ru> Date: Tue, 1 Nov 2016 11:17:58 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161101143150.GA4952@c720-r292778-amd64> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrin.ru; s=s0; t=1478013479; bh=r3ZyKFslrpUmeGqYhGoUeWzkBh2TObkJeCYuoTo+JDQ=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=N6+n4/VLehr0MMu+aufUEOh70GXc3OIwBKxEN8tbQ4KUGzN4KtyGsWkcWLnnqC6ZyHpU+e+gZFbMSkcXg8NOBrzwFmLAk//zkbx6q+rHNJDgCKxdqYgvWokhfRPF0Hqpr3gcKHzAoxSz2muQOdeVeKF4Y+NsXu0vnXRrDG5wTW8= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2016 15:18:10 -0000 On 11/01/16 10:31, Matthias Apitz wrote: > I've got a file, one page A1 size PDF, and want to split this for > printing (and glueing together) into 4 pages of A4 size PDF; do we have > something in our ports for this, best a command line tool? Your can use ImageMagick (and may be GraphicsMagick) For cli version install port graphics/ImageMagick-nox11 If ImageMagick compiled with pdf support convert tool can read pdf and write raster image. See my script as example: https://bitbucket.org/citrin/scripts/src/tip/split-image.sh And modify for your task if need.