unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: Emacs help <Help-gnu-emacs@gnu.org>
Subject: Re: Print to PDF? Configure fonts used when printing?
Date: Wed, 5 Oct 2005 01:07:57 +0200	[thread overview]
Message-ID: <7f4cc4751a2de252e7c0b96996f3d672@Web.DE> (raw)
In-Reply-To: <049C03ED-EFE8-4B00-8072-177CE759D951@gmail.com>


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

  reply	other threads:[~2005-10-04 23:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 10:43 Print to PDF? Configure fonts used when printing? David Reitter
2005-10-04 23:07 ` Peter Dyballa [this message]
2005-10-06 22:11   ` David Reitter
2005-10-06 23:35     ` Peter Dyballa
2005-10-11 20:06     ` Peter Dyballa
     [not found]     ` <mailman.10931.1129061171.20277.help-gnu-emacs@gnu.org>
2005-10-12 10:39       ` Piet van Oostrum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f4cc4751a2de252e7c0b96996f3d672@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=Help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).