From owner-freebsd-questions@FreeBSD.ORG Tue Jan 31 23:09:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D424C16A420 for ; Tue, 31 Jan 2006 23:09:34 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07E5943D5F for ; Tue, 31 Jan 2006 23:09:27 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout4.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k0VN9Qh1011293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 31 Jan 2006 15:09:26 -0800 X-Auth-Received: from [192.168.0.21] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k0VN9MZt030103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 31 Jan 2006 15:09:25 -0800 Message-ID: <43DFEE21.4010705@u.washington.edu> Date: Tue, 31 Jan 2006 15:09:21 -0800 From: Garrett Cooper User-Agent: Mail/News 1.5 (X11/20060113) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <003c01c62683$36c92140$0200a8c0@satellite> <6504AD07-644C-48E2-A796-95AE35D1F251@u.washington.edu> <005e01c6269f$56dd7f50$0200a8c0@satellite> In-Reply-To: <005e01c6269f$56dd7f50$0200a8c0@satellite> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: converting pdfs with xpdf 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: Tue, 31 Jan 2006 23:09:34 -0000 Dave wrote: > Hi, > Thanks. That gives me a starting place. I'll probably do it with > sed, i'm more familiar with that. Have you converted pdfs with > ghostscript? I'm looking for the commands i would have to issue. The > pdfs i want to convert to ps and to regular text files. > Thanks. > Dave. > > ----- Original Message ----- From: "Garrett Cooper" > > To: "FreeBSD Questions" > Sent: Tuesday, January 31, 2006 12:51 PM > Subject: Re: converting pdfs with xpdf > > >> On Jan 31, 2006, at 8:27 AM, Dave wrote: >> >>> Hello, >>> I'm running freebsd6 and xpdf 3.01_2. I've got pdfs that i want >>> to convert to ps and text documents in four different areas in my >>> home directory. I could convert them such as: >>> pdfto format file1.pdf file2.ps etc. >>> but i was wondering if there was a faster way? My second issue is >>> some of these files are pdf 1.6 and as i've already tried xpdf >>> won't convert these docs, does anyone have xpdf working with pdf >>> 1.6 files? >>> Second, after i convert all these docs there are three patterns >>> i'd like to remove from them, all having spaces and & signs in >>> them. Again, i could do this manually, but i was wondering one if >>> there was a faster way and two if i could do this on the tail end >>> of the conversion process so i would only have to issue one command >>> and come back probably a while later, these files are big, and it's >>> all done? >>> Thanks. >>> Dave. >> >> Ghostscript works wonders with PDFs and PSs, but then again I don't >> know how well the [linux-]acroread port works and that may be worth >> a shot as well. >> As for the removing of characters, if you have a text file you can >> always process it with sed or [g]awk. >> -Garrett Take a gander at this: http://www.bsdforums.org/forums/archive/index.php/t-3899.html. Basically all you need is pdf2ps, which is available with the port . -Garrett