Debian Bug report logs - #538326
groff: pdfroff produces duplicate pages

version graph

Package: groff; Maintainer for groff is Colin Watson <cjwatson@debian.org>; Source for groff is src:groff.

Reported by: "brian m. carlson" <sandals@crustytoothpaste.net>

Date: Fri, 24 Jul 2009 20:24:02 UTC

Severity: normal

Found in version groff/1.20.1-4

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#538326; Package groff. (Fri, 24 Jul 2009 20:24:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "brian m. carlson" <sandals@crustytoothpaste.ath.cx>:
New Bug report received and forwarded. Copy sent to Colin Watson <cjwatson@debian.org>. (Fri, 24 Jul 2009 20:24:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "brian m. carlson" <sandals@crustytoothpaste.ath.cx>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: groff: pdfroff produces duplicate pages
Date: Fri, 24 Jul 2009 20:20:24 +0000
[Message part 1 (text/plain, inline)]
Package: groff
Version: 1.20.1-4
Severity: normal
File: /usr/bin/pdfroff

pdfroff produces duplicate pages:

  lakeview ok % groff -me brass-fluorescence.mx | ps2pdf - - | pdftk - dump_data | grep NumberOfPages
  NumberOfPages: 1
  lakeview ok % pdfroff -me brass-fluorescence.mx | pdftk - dump_data | grep NumberOfPages           
  NumberOfPages: 2

The file in question, which is attached, is a one-page poem[0].  Using
the former method correctly produces one page.  Using pdfroff creates
two pages, which AFAICT are identical.

I'd like pdfroff not to produce duplicate output.

[0] No guarantees of quality are made. :-)

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/zsh4

Versions of packages groff depends on:
ii  groff-base                    1.20.1-4   GNU troff text-formatting system (
ii  libc6                         2.9-21     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.1-1  GCC support library
ii  libice6                       2:1.0.5-1  X11 Inter-Client Exchange library
ii  libsm6                        2:1.1.0-2  X11 Session Management library
ii  libstdc++6                    4.4.1-1    The GNU Standard C++ Library v3
ii  libx11-6                      2:1.2.2-1  X11 client-side library
ii  libxaw7                       2:1.0.5-2  X11 Athena Widget library
ii  libxmu6                       2:1.0.4-1  X11 miscellaneous utility library
ii  libxt6                        1:1.0.5-3  X11 toolkit intrinsics library

Versions of packages groff recommends:
ii  ghostscript                8.64~dfsg-13  The GPL Ghostscript PostScript/PDF
ii  imagemagick                7:6.5.1.0-1.1 image manipulation programs
ii  libpaper1                  1.1.23+nmu1   library for handling paper charact
ii  netpbm                     2:10.0-12     Graphics conversion tools
ii  psutils                    1.17-26       A collection of PostScript documen

groff suggests no packages.

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
[brass-fluorescence.mx (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#538326; Package groff. (Fri, 24 Jul 2009 21:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "brian m. carlson" <sandals@crustytoothpaste.ath.cx>:
Extra info received and forwarded to list. Copy sent to Colin Watson <cjwatson@debian.org>. (Fri, 24 Jul 2009 21:51:03 GMT) Full text and rfc822 format available.

Message #10 received at 538326@bugs.debian.org (full text, mbox):

From: "brian m. carlson" <sandals@crustytoothpaste.ath.cx>
To: Debian Bug Tracking System <538326@bugs.debian.org>
Subject: Re: groff: pdfroff produces duplicate pages
Date: Fri, 24 Jul 2009 21:48:57 +0000
[Message part 1 (text/plain, inline)]
On Fri, Jul 24, 2009 at 08:20:24PM +0000, brian m. carlson wrote:
> The file in question, which is attached, is a one-page poem[0].  Using
> the former method correctly produces one page.  Using pdfroff creates
> two pages, which AFAICT are identical.

Okay, I've looked into this, and it seems the following happens:

* pdfroff processes the input for TOC formatting and puts it in a file.
* It then processes the input for body formatting and writes that to a
  different file.
* Finally, it pipes both files through a sed script and into
  Ghostscript.

The problem here is that both files are identical.  If I use --emit-ps
to bypass the PS to PDF conversion (using Ghostscript), then I can see
that the output basically consists of two concatenated PostScript files;
the line immediately after the first "%%EOF" is another
"%!PS-Adobe-3.0".

I'm not sure how to fix this, since I'm not sure exactly how it was
supposed to work in the first place.  Hopefully this is helpful.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#538326; Package groff. (Sun, 23 May 2010 11:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Janne Snabb <snabb@epipe.com>:
Extra info received and forwarded to list. Copy sent to Colin Watson <cjwatson@debian.org>. (Sun, 23 May 2010 11:57:03 GMT) Full text and rfc822 format available.

Message #15 received at 538326@bugs.debian.org (full text, mbox):

From: Janne Snabb <snabb@epipe.com>
To: 538326@bugs.debian.org
Subject: Re: groff: pdfroff produces duplicate pages
Date: Sun, 23 May 2010 11:35:41 +0000 (UTC)
I encountered this problem as well.

It seems that the developer of pdfroff does not consider this a bug.

The work-around is to use "--no-toc" option to pdfroff.

See the following message for more information:

http://lists.gnu.org/archive/html/groff/2009-08/msg00028.html

--
Janne Snabb / EPIPE Communications
snabb@epipe.com - http://epipe.com/




Changed Bug submitter to '"brian m. carlson" <sandals@crustytoothpaste.net>' from '"brian m. carlson" <sandals@crustytoothpaste.ath.cx>' Request was from "brian m. carlson" <sandals@crustytoothpaste.net> to control@bugs.debian.org. (Thu, 03 Feb 2011 20:51:45 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 13:04:21 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.