From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Print to PDF? Configure fonts used when printing? Date: Wed, 5 Oct 2005 01:07:57 +0200 Message-ID: <7f4cc4751a2de252e7c0b96996f3d672@Web.DE> References: <049C03ED-EFE8-4B00-8072-177CE759D951@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128504304 25255 80.91.229.2 (5 Oct 2005 09:25:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2005 09:25:04 +0000 (UTC) Cc: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 11:25:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EN5VC-0000sz-CU for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 11:23:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EN5VA-0006CZ-Oc for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 05:23:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EN4hZ-0008FS-RF for help-gnu-emacs@gnu.org; Wed, 05 Oct 2005 04:32:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EN4fe-0007s7-4D for Help-gnu-emacs@gnu.org; Wed, 05 Oct 2005 04:30:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EN4dW-0007BS-O8 for Help-gnu-emacs@gnu.org; Wed, 05 Oct 2005 04:28:26 -0400 Original-Received: from [217.72.192.209] (helo=smtp05.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EN4dW-0004b3-J8 for Help-gnu-emacs@gnu.org; Wed, 05 Oct 2005 04:28:26 -0400 Original-Received: from [84.245.189.219] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (WEB.DE 4.105 #317) id 1EN4dU-00035U-00; Wed, 05 Oct 2005 10:28:24 +0200 In-Reply-To: <049C03ED-EFE8-4B00-8072-177CE759D951@gmail.com> X-Gpgmail-State: !encrypted X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: David Reitter X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29928 Archived-At: Am 04.10.2005 um 12:43 schrieb David Reitter: > Alternatively, is there a package that would allow me to print to PDF > directly? Not exactly an (X)Emacs package, but Perl: http://search.cpan.org/~evanzs/PDF-CreateSimple1.09/lib/PDF/ CreateSimple.pm http://search.cpan.org/~mhosken/Text-PDF-0.25/lib/Text/PDF/Page.pm http://search.cpan.org/~jonallen/a2pdf-1.11/ a2pdf requires the PDF::API2 Perl module (tested with PDF::API2 version 0.3r77). Perl syntax highlighting requires the Perl::Tidy module. To include images in the page header, the modules File::Type and Image::Size must be installed. To enable the necessary "--page-size" option (A4 is standard), the Paper::Specs module must be installed. While the other modules make own Perl script programming necessary, a2pdf looks to be ready-made -- but it does need a large set of other modules. Starting with Perl 5.8.7 there is perlcc -- a way to create binary Perl 'programmes' that carry everything needed with them, except dynamic libraries! a2pdf would need these, somewhere inside the Aquamacs Emacs application bundle (most are probably in Mac OS X): use File::Spec::Functions; use FindBin; use Getopt::Long; use Pod::Usage; use POSIX; use Text::ParseWords; use Perl::Tidy; use List::Util; use PDF::API2; use Paper::Specs; use File::Type; use Image::Size; I'm having problems with a2pdf (Perl 5.6.1, Mac OS X 10.3.9, ...) ... In the end, I think, it would be most useful to write an own script: you could use Unicode encoded fonts from Mac OS X (or additions to these sets) and be able to print in every script! -- Greetings Pete Time flies like an error but fruit flies like a banana