ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Yury Konovalov <yurix@unixcenter.ru>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: [sisyphus] CUPS, PPD от производителя, и печать из Mozilla (workaround)
Date: Mon, 2 Dec 2002 12:49:50 +0300
Message-ID: <200212021249.50333.yurix@unixcenter.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1622 bytes --]

Hi all !

 Предлагается грязный хак для CUPS, который позволяет включать шрифты, если
приложение этого не делает. Работает с любыми PPD, включая PPD от
производителя, но нужен только для PS принтеров.

 Самое правильное место для подобной функциональности - фильтр pstops. Но
поскольку пока в нем это не реализованно, временный выход - реализовать эту
функцию в скрипте, который должен вызываться вместо pstops (прототип скрипта
приложен). Наилучший результат, как выяснилось, дает преобразование PS2PDF
(gs), а потом pdftops (CUPS).

для установки:
- скопировать pstops-wrapper в /usr/lib/cups/filter/
- изменить /etc/cups/mime.convs
  ...
  application/postscript  application/vnd.cups-postscript 66 pstops-wrapper
  ...
- для того, чтобы включать/выключать эту функцию на клиенте, нужно добавить
  опцию в используемый PPD:

bash# cat - >>/etc/cups/ppd/yourprinter.ppd
*OpenUI *EmbedFonts/Embed all fonts: Boolean
*OrderDependency: 21 DocumentSetup *EmbedFonts
*DefaultEmbedFonts: False
*EmbedFonts True/On:  ""
*EmbedFonts False/Off: ""
*CloseUI: *EmbedFonts

- service cups restart

Теперь все работает как и прежде, если клиент не включит опцию "Embed all 
fonts".

PS. Поскольку это всеже грязный хак, то не рекомендуется включать эту опцию на
    клиенте по умолчанию (сохраняя настройку например), так как это чревато
    проблемами с печатью уже из "правильных" приложений, т.е из тех которые
    сами включают шрифты при печати (особенно Type3 шрифты).


 -- 
Yury Konovalov [mailto:yurix@unixcenter.ru, phone: +7 (095) 1584526]
Moscow Aviation Institute,
Information Networks Dep. [ http://www.unixcenter.ru ]

[-- Attachment #2: cups-pstops-wrapper.tar.bz2 --]
[-- Type: application/x-tbz, Size: 2304 bytes --]

             reply	other threads:[~2002-12-02  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02  9:49 Yury Konovalov [this message]
2002-12-02 11:41 ` [sisyphus] CUPS, PPD ПФ РТПЙЪЧПДЙФЕМС, Й РЕЮБФШ ЙЪ " aen
2002-12-03 10:17 ` [sisyphus] CUPS, PPD от производителя, и печать из " Stanislav Ievlev
2002-12-03 14:07   ` Yury Konovalov

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

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

  git send-email \
    --in-reply-to=200212021249.50333.yurix@unixcenter.ru \
    --to=yurix@unixcenter.ru \
    --cc=sisyphus@altlinux.ru \
    /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

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git