Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing to a postscript file

0 views
Skip to first unread message

McNeill Kirkpatrick

unread,
Mar 30, 2002, 5:43:09 PM3/30/02
to
I am trying to create a .ps file and I can't seem to find documentation
on it anywhere. I am wondering if there is a way to configure things so
that when I print something it is output to a postscript file rather
than being sent to a printer( I don't own a printer so this would be a
permanent setup). Any help anyone can give me on this would be great.
Thanks ,
McNeill Kirkpatrick


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org


dman

unread,
Mar 30, 2002, 6:09:28 PM3/30/02
to
On Sat, Mar 30, 2002 at 04:42:11PM -0600, McNeill Kirkpatrick wrote:
| I am trying to create a .ps file and I can't seem to find documentation
| on it anywhere. I am wondering if there is a way to configure things so
| that when I print something it is output to a postscript file rather
| than being sent to a printer( I don't own a printer so this would be a
| permanent setup). Any help anyone can give me on this would be great.

Many programs have this option. In the print dialog there's a radio
button with a text box for "command" or "filename". Typically the
default is to send to the "lp" or "lpr" command.

Alternatively you could specify a filter in /etc/printcap (if you're
using lpd or lprng). The filter would then be a simple script that
consumes all input and sticks it in a file.

Another method is to use CUPS and just disable the printer. The print
jobs (postcript) will reside in /var/spool/cups/, but only root and
the lp user can access those files by default. (you would need to
switch to one of those users to copy the file to where ever you want)

-D

--

Many are the plans in a man's heart,
but it is the Lord's purpose that prevails.
Proverbs 19:21

Karsten M. Self

unread,
Apr 1, 2002, 12:01:36 PM4/1/02
to

--3XA6nns4nE4KvaS/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

on Sat, Mar 30, 2002, dman (dm...@dman.ddts.net) wrote:
> On Sat, Mar 30, 2002 at 04:42:11PM -0600, McNeill Kirkpatrick wrote:
> | I am trying to create a .ps file and I can't seem to find documentation
> | on it anywhere. I am wondering if there is a way to configure things so
> | that when I print something it is output to a postscript file rather
> | than being sent to a printer( I don't own a printer so this would be a
> | permanent setup). Any help anyone can give me on this would be great.

>=20


> Many programs have this option. In the print dialog there's a radio
> button with a text box for "command" or "filename". Typically the
> default is to send to the "lp" or "lpr" command.

>=20


> Alternatively you could specify a filter in /etc/printcap (if you're
> using lpd or lprng). The filter would then be a simple script that
> consumes all input and sticks it in a file.

>=20


> Another method is to use CUPS and just disable the printer. The print
> jobs (postcript) will reside in /var/spool/cups/, but only root and
> the lp user can access those files by default. (you would need to
> switch to one of those users to copy the file to where ever you want)

You can also commonly change the print command in a program. I do this
typically to filter through psnup or mpage, you can also redirect the
output to a file.

My galeon "print command" generally resembles:

mpage -2 | lpr # gv -seascape -letter -magstep 1 - # > /tmp/galeon.ps

=2E..where the dialog respect shell syntax, including comment characters
('#'). If I want to preview or print to file, I reorder the arguments
appropriately.

Peace.

--=20
Karsten M. Self <kms...@ix.netcom.com> http://kmself.home.netcom.=
com/
What Part of "Gestalt" don't you understand?
The best damned coffee on the planet:
Graffeo Coffee, 735 Columbus Ave., San Francisco, California, USA, Ear=
th
http://www.graffeo.com/

--3XA6nns4nE4KvaS/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8qJI7VsqntYRW2N0RAjsKAJ9jn/xYOV7qyshoGDs2vv7GNDqjUwCdHatS
/MxCAtiEb2Aqg+vzz4klwyw=
=BT2C
-----END PGP SIGNATURE-----

--3XA6nns4nE4KvaS/--

Xeno Campanoli

unread,
Apr 16, 2002, 11:54:11 PM4/16/02
to
And I can't seem to find it on the Debian Website. Any suggestions?
--
http://www.eskimo.com/~xeno
xe...@eskimo.com
Physically I'm at: 5101 N. 45th St., Tacoma, WA, 98407-3717, U.S.A.

David Z Maze

unread,
Apr 17, 2002, 8:07:01 AM4/17/02
to
Xeno Campanoli <xe...@eskimo.com> writes:
> And I can't seem to find it on the Debian Website. Any suggestions?

Run 'dpkg -S `which dselect`' to find out which package dselect is in
(here dpkg), and then 'apt-get source dpkg'. Or you can dig around
under ftp://ftp.debian.org/debian/pool/main/d/dpkg, which contains the
source and binary packages for testing and unstable (not stable yet)
for all architectures.

--
David Maze dm...@debian.org http://people.debian.org/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell

debia...@america.eu.org

unread,
Apr 17, 2002, 3:19:45 PM4/17/02
to
> And I can't seem to find it on the Debian Website. Any suggestions?

Edit /etc/apt/sources.list

Add this line
deb-src http://http.us.debian.org/debian woody main contrib non-free
to this file.

Then run
apt-get source dpkg cdebconf

jp

0 new messages