Re: call kprinter with pseudo printer directly

Cristian Tibirna <[email protected]> Sun, 7 Jun 2009 15:41:46 -0400
Newsgroups gmane.comp.kde.kdeprint
Organization KDE
Message-ID <[email protected]>
--===============1997967356==
Content-Type: multipart/signed;
  boundary="nextPart2566381.Ppprg7D52j";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit

--nextPart2566381.Ppprg7D52j
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

On Sunday 07 June 2009 09:29:06 Ekkard Gerlach wrote:
> Hi,
>
> I need to call kprinter directly with the pseudo printer
> "Print to file (PDF)" within a script. How can I do that?
>
> I knwo the command
>      kprinter -d <printername>
> but how does it work for pseudo printers?
>

I believe giving the full name of the printer should work, but it is a long=
=20
time since I ran KDE3 last time and anyways I never used pseudoprinters fro=
m=20
the command line. So, something like

kprinter -d Print\ to\ file\ \(PDF\)

or even

kprinter -d "Print to file (PDF)"

should work.

Anyways, usually, the things that I suppose you want to do can be accomplis=
hed=20
by using ghostscript directly. Look at=20

$KDEDIR/share/apps/kdeprint/specials.desktop

for examples of ghostscript use.

(of course, internet is your source for further information).

=2D-=20
Cristian Tibirna
KDE developer .. [email protected] .. http://www.kde.org

--nextPart2566381.Ppprg7D52j
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkosGAEACgkQW6oS7C9pzgOG5wCfSsf53GM4P5wh+6cylBgwkw/e
RYMAn2Qi2mzpiciefHaiMhkIungxY2Mv
=7Eid
-----END PGP SIGNATURE-----

--nextPart2566381.Ppprg7D52j--

--===============1997967356==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
kde-print mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-print

--===============1997967356==--