From owner-freebsd-questions@FreeBSD.ORG Fri Apr 17 13:22:21 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B9C51065793 for ; Fri, 17 Apr 2009 13:22:21 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id BDA598FC16 for ; Fri, 17 Apr 2009 13:22:20 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Luo1I-0000uC-5U for freebsd-questions@freebsd.org; Fri, 17 Apr 2009 14:22:19 +0100 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1Luo1E-0002ZO-Or for freebsd-questions@freebsd.org; Fri, 17 Apr 2009 14:22:12 +0100 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id n3HDMBkt031236 for ; Fri, 17 Apr 2009 14:22:11 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3/Submit) id n3HDM9Vr031235 for freebsd-questions@freebsd.org; Fri, 17 Apr 2009 14:22:09 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 17 Apr 2009 14:22:08 +0100 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20090417132208.GA31198@mech-cluster238.men.bris.ac.uk> References: <64c038660904161950i623bbaf2q47ebf7ccc8dd97eb@mail.gmail.com> <20090417052639.GA49635@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090417052639.GA49635@slackbox.xs4all.nl> User-Agent: Mutt/1.5.19 (2009-01-05) X-Spam-Score: -1.4 X-Spam-Level: - Subject: Re: PDF Authoring tool, suggestions? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2009 13:22:22 -0000 On Fri, Apr 17, 2009 at 07:26:39AM +0200, Roland Smith wrote: > On Thu, Apr 16, 2009 at 08:50:44PM -0600, Modulok wrote: > > I'm looking for recommendations for a BSD-friendly, PDF authoring tool > > (Not a viewer, see below.) > > > > I have an image of a signature that I need to put into a PDF document. > > I converted the original, un-signed PDF document to a raster PNG, then > > used GIMP to place a photograph of the signature where I need it. I > > then converted the PNG back to a PDF using ImageMagick's 'convert' > > utility. The problem, is the PDF is now HUGE. Both in dimensions as > > well as file size. It went from 28kb to 292Kb. There must be a better > > way to do this. > > Convert the PNG to a JPEG file with the gimp, then use jpeg2ps from the > graphics/jpeg2ps-a4 or graphics/jpeg2ps-letter port to convert it to > PostScript. Finally, use epstopdf from print/teTeX-base or ps2pdf from > print/ghostscript8 to convert to PDF. hard to get good quality because the result is likely to be a raster image. Technically I'd do this with ImageMagick's composite - overlaps one image over another, but the output pdf will be a poor quality raster image and, yes, significantly bigger in size. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423