Package: xpdf-utils
Version: 3.01-7
Severity: normal

Hello,

`pdftops' generates invalid PostScript when the source PDF comes from
a converted PostScript files containing patterns.  To be clearer, let
me illustrate this, using Lout (package `lout', version 3.31):

  $ cat << EOF | lout -o texture.ps
  @SysInclude { doc }
  @Doc
  @Text @Begin

  @Center @Box paint { black } texture { striped } { Bluuuuurps! }

  @End @Text
  EOF
  $ pdf2ps texture.ps  # GS happily does the job
  $ xpdf texture.pdf  # Here a box containing a striped texture is
                      # rendered, no problem.
  $ pdftops texture.pdf texture.broken.ps
  $ gv texture.broken.ps  # Here GS complains and fails to render
                          # the PS file.

Note that this problem does not occur with Xpdf 3.00 (from Debian).

I tried to reproduce the problem with a simple PS file but fail to do
so.  For instance, the following PS file (which produces a PS pattern
similar to that produced by Lout above) does no trigger this problem:

  %!
  <</PageSize [1000 1000] /Policies<</PageSize 1>> >>setpagedevice
  72 72 scale

  <<
      /PatternType 1 % tiling pattern
      /TilingType 1  % constant spacing
      /XStep 1
      /YStep 2
      /PaintType 1   % colored
      /PaintProc {
  pop 0 0 moveto
  1 1 add 0 lineto
  0 1 rlineto
  0 1 lineto
  closepath fill
  }
      /BBox [0 0 10 10]
  >>

  [1 0 0 1 0 0] % identity
  makepattern

  setpattern

  newpath
  0 0 moveto 0 200 lineto 200 100 lineto
  closepath
  fill

  showpage

It might be Lout's handling of PS patterns that is at fault, although
I'd suppose it is unlikely since GS doesn't complain about it.

I hope this is not too obscure.  I'd be glad to help further.

Thanks,
Ludovic.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xpdf-utils depends on:
ii  libc6                         2.3.6-4    GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-9  GCC support library
ii  libpaper1                     1.1.14-5   Library for handling paper charact
ii  libstdc++6                    4.0.2-9    The GNU Standard C++ Library v3
ii  xpdf-common                   3.01-7     Portable Document Format (PDF) sui

xpdf-utils recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to