ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Stanislav Ievlev <inger@altlinux.org>
To: devel@altlinux.org, docs@altlinux.org
Subject: [devel] I: об одной из проблем печати.
Date: Wed, 11 Aug 2004 19:21:24 +0400
Message-ID: <20040811152124.GA3229@basalt.office.altlinux.org> (raw)

Это ответ на многие вопросы по поводу того, почему некоторые PostScript
(соответственно PDF) файлы не печатаются, 
хотя благополучно просматриваются в gv. В частности это ответ 
на https://bugzilla.altlinux.org/show_bug.cgi?id=1673

Вот описание проблемы:
Файл великолепно просматривается в gv, но не выводится на печать или
выводится что-то совсем другое.

Такая разница в поведении возникает из-за того что при печати Postscript
документ проходит через ряд фильтров (например pstops, который в данном
случае всё и ломает, ещё что-то от себя вносит foomatic-rip, 
если печать идёт с его использованием), 
добавляющих в этот Postscript ещё ряд управляющих конструкций,
необходимых для выставления правильного разрешения и прочих параметров не
требуемых для визуального просмотра в gv:

Почему это происходит:
В данном случае из-за того что документ нарушает ряд стандартных
соглашений Adobe, но имеет правильный заголовок (то есть претендует на то
что он правильный)

Как это лечить:
В данном случае достаточно заменить 
%!PS-Adobe-1.0
на какую-нибудь ерунду вроде:
%!sdfgsdfg
Тогда файл не будет претендовать на соответствие стандарту, нормально
переварится всеми фильтрами и пройдёт на печать.

Если подобный Postscript генерит какая-либо программа, то надо исправлять
видимо ужё её.

Более подробный ответ от CUPS'овцев приведён ниже. Там же есть ссылка на
багу, где несогласные могут вести дискуссию.

Думаю это надо занести куда-нибудь в документацию или в FAQ.


--
Станислав Иевлев.

----- Forwarded message from noreply@cups.org -----

Date: Wed, 11 Aug 2004 10:17:40 -0400 (EDT)
From: noreply@cups.org
To: inger@altlinux.org
Subject: CUPS STR #847 updated


Your software trouble report #847 has been updated.  You can check
the status of the report and add additional comments and/or files
at the following URL:

    http://www.cups.org/str.php?L847

    Summary: prints blank page instead of a PS-file
    Version: 1.1.20
     Status: 2 - Closed w/o Resolution
   Priority: 3 - Moderate, e.g. unable to print a file or unable to compile the software
      Scope: 3 - Applies to all machines, printers, and operating systems
  Subsystem: PostScript Filter
Fix Version: Not Applicable

Your PS file does not conform to the Adobe Document Structuring Conventions
but claims conformance (the "%!PS-Adobe-1.0" line at the top of the file)
so pstops treats it as such.

If you remove the "PS-Adobe-1.0" portion of the first line or just add
another line to the front of it containing "%!" then the problem will go
away.

We cannot and will not try to "fix" this, as "fixing" it will break things
for all other conforming applications.

________________________________________________________________
Thank you for using the CUPS Software Trouble Report page!

----- End forwarded message -----


                 reply	other threads:[~2004-08-11 15:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040811152124.GA3229@basalt.office.altlinux.org \
    --to=inger@altlinux.org \
    --cc=devel@altlinux.org \
    --cc=devel@altlinux.ru \
    --cc=docs@altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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