help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Emacs as PS converter


From: Angelo Graziosi
Subject: Using Emacs as PS converter
Date: Mon, 01 Dec 2014 16:05:28 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Out of curiosity, I wonder if one can use Emacs as a postscript converter.. Suppose I have a file foo.txt. If I visit it and the

  M-x ps-spool-buffer-with-faces

the result is in a *PostScript* buffer that I can save as foo.ps.

But what if one wants use that from command line o shell script?

I have tried this:

$ emacs --batch foo.txt -f ps-spool-buffer-with-faces --visit \*PostScript\* -f save-buffer

Formatting...  0%
Collecting face information...
Formatting...100%
Formatting...done
Wrote /home/angelo/work/*PostScript*


but '*PostScript*' is saved empty...

$ ls -lrt
...
... 0  1 dic 15.54 *PostScript*


Where is the error?

TIA,
 Angelo.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]