NetBSD Problem Report #47936

From www@NetBSD.org  Sun Jun 16 17:06:34 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6ABBC70A55
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 16 Jun 2013 17:06:34 +0000 (UTC)
Message-Id: <20130616170631.A8B1170B3D@mollari.NetBSD.org>
Date: Sun, 16 Jun 2013 17:06:31 +0000 (UTC)
From: schaecsn@gmx.net
Reply-To: schaecsn@gmx.net
To: gnats-bugs@NetBSD.org
Subject: thumbpdf does not work
X-Send-Pr-Version: www-1.0

>Number:         47936
>Category:       pkg
>Synopsis:       thumbpdf does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 16 17:10:00 +0000 2013
>Closed-Date:    Thu Jan 02 20:14:16 +0000 2020
>Last-Modified:  Thu Jan 02 20:14:16 +0000 2020
>Originator:     Stefan
>Release:        Slackware 13.0 / pkgsrc 2013Q1
>Organization:
>Environment:
>Description:
thumbpdf does not work.

>How-To-Repeat:
How it looks on Debian (how it should look like):

$ a2ps /etc/motd -o - | ps2pdf - out.pdf
[/etc/motd (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] sent to the standard output

$ thumbpdf out.pdf 
THUMBPDF 3.15, 2012/04/18 - Copyright (c) 1999-2012 by Heiko Oberdiek.
*** make png files / run Ghostscript ***
Processing pages 1 through 1.
[1]
*** make `thumbpdf.pdf' / run pdfTeX ***
*** parse `thumbpdf.pdf' ***
*** write `out.tpt' (pdfTeX thumbnail data) ***
*** clear temp files ***
*** ready. ***


How it looks on pkgsrc

$ a2ps /etc/motd -o - | ps2pdf - out.pdf
[/etc/motd (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] sent to the standard output

$ thumbpdf out.pdf 
THUMBPDF 3.7, 2004/11/19 - Copyright (c) 1999-2004 by Heiko Oberdiek.
*** make png files / run Ghostscript ***
Processing pages 1 through 1.
[1]
*** make `thumbpdf.pdf' / run pdfTeX ***
*** parse `thumbpdf.pdf' ***
*** clear temp files ***
!!! Error: `obj' expected on line 2!
>Fix:
pkgsrc's version lags somewhat behind. How about an upgrade?

>Release-Note:

>Audit-Trail:
From: Stefan Schaeckeler <schaecsn@gmx.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47936: thumbpdf does not work
Date: Tue, 18 Jun 2013 16:37:28 -0700 (PDT)

 Debian uses texlive that comes with a recent thumbpdf version. Like NetBSD, FreeBSD is still using teTeX with the same old thumbpdf version. That's a good point of comparision.

 The error results from a "wrong" intermediate file "thumbpdf.pdf". The second line is expected to be the "obj" line.

 FreeBSD thumbpdf.pdf:

 %PDF-1.4
 4 0 obj <<
 /Length 54


 Pkgsrc thumbpdf.pdf:

 %PDF-1.5
 %DOAO
 10 0 obj <<


 The second line is a comment and not expected by thumbpdf. I tried to reproduce it with a minimal .tex file:

 $ cat hello.tex
 hello world
 \bye
 $ pdftex hello.tex

 Same here. FreeBSD generates the obj line on line 2 and Pkgsrc on line 3.

 Not sure how to fix that. Either convince pdftex to generate pdf-1.4 files or make thumbpdf read over the second line (grep for "#get obj" in thumbpdf.pl).

  Stefan

State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Thu, 02 Jan 2020 20:14:16 +0000
State-Changed-Why:
pkgsrc has switched from teTeX to TeXlive a long time ago.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.