ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Stanislav Ievlev <inger@altlinux.org>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] CUPS, PPD от производителя, и печать из Mozilla (workaround)
Date: Tue, 3 Dec 2002 13:17:13 +0300
Message-ID: <20021203101713.GJ360@basalt.office.altlinux.ru> (raw)
In-Reply-To: <200212021249.50333.yurix@unixcenter.ru>

On Mon, Dec 02, 2002 at 12:49:50PM +0300, Yury Konovalov wrote:
> 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 шрифты).
Ну если автор хака сомневается в надежности, то даже и не знаю стоит ли
включать. Наверное лучше приложить скрипт в пакет CUPS и написать
документацию для желающих?

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




  parent reply	other threads:[~2002-12-03 10:17 UTC|newest]

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