From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: patch: handle PS/PDF in Gnus Date: Fri, 6 Jul 2007 17:31:32 +0100 Message-ID: <8480CDB2-EDBB-4B62-A3CC-D8A13A8E5A46@gmail.com> References: <86r6nl8s13.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183739509 15853 80.91.229.12 (6 Jul 2007 16:31:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2007 16:31:49 +0000 (UTC) To: emacs- devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 06 18:31:47 2007 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I6qid-0003Ht-G8 for ged-emacs-devel@m.gmane.org; Fri, 06 Jul 2007 18:31:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6qic-0008UZ-Oa for ged-emacs-devel@m.gmane.org; Fri, 06 Jul 2007 12:31:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6qiZ-0008UL-Qg for emacs-devel@gnu.org; Fri, 06 Jul 2007 12:31:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6qiY-0008U4-GC for emacs-devel@gnu.org; Fri, 06 Jul 2007 12:31:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6qiY-0008U0-8a for emacs-devel@gnu.org; Fri, 06 Jul 2007 12:31:38 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I6qiX-00074W-S8 for emacs-devel@gnu.org; Fri, 06 Jul 2007 12:31:38 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 34so876181ugf for ; Fri, 06 Jul 2007 09:31:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=H/gXoqDWCUedWvOjydkkS+Bto98LHVyBDtPrijx86qsN/1Vrmm60kDCe/T++Swq/SH3T6Cf3RHmRtLNezy4nSntGNKzbGQEtGe+s+fmtrfaXFiUXRvpd0YVxlfo1tXcUUEvZoEh70/nALHmPAWLNdwMtG0NkKeNfpSZ0Fz72ew0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=n7yGZ6wyS5Jf7tbTPDgOiQRvRR7Bnxvwo9OU+NgHkN7kVlFHToZUJWmfuzBdXYqWQYCwOLcGRavJ/jCkQsvzOVh/g6iLd1CsG0xPJyeLtzfSNct3FW2dd/JOvyqCs7Mljz09qdMznuN3YDszRc7oKz1dQzZgAwpwPo3WeXUHD6c= Original-Received: by 10.78.159.7 with SMTP id h7mr395875hue.1183739495785; Fri, 06 Jul 2007 09:31:35 -0700 (PDT) Original-Received: from ?10.5.5.200? ( [84.9.229.177]) by mx.google.com with ESMTP id 7sm703583nfv.2007.07.06.09.31.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jul 2007 09:31:33 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.752.2) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74412 Archived-At: On 6 Jul 2007, at 16:54, Sean O'Rourke wrote: > David Reitter writes: >> As for the patch, calling pdf2ps and pdftops is not a good idea since >> this stuff isn't installed unless the user explicitly installs them >> (e.g. Ghostscript, which is mostly useless on the Mac). > > This is for printing. Do you know of a better way to print > something without first displaying it? (Maybe applescript?) The Carbon framework has APIs for printing. You would have to output things on that end (i.e., implemented in C) and then you can call the standard print dialogs that will handle everything from outputting to PDF, choosing a printer and using the right driver, choosing a layout for the pages, etc. That would be the correct way, and everything else is more or less a hack. It probably not worth implementing in Carbon, given that the Cocoa port is in the works. That said, "lpr" should work for PS, PDF, plain text or standard image files even if the default printer is not PostScript capable (from OS X 10.4). So that's what I would try. You can also print via AppleScript using the Preview application (it can bring up the print dialog directly), and that would work for PostScript files as well. But that's relatively hack-y... - David