From MAILER-DAEMON Thu Aug 07 10:40:49 2008
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1KR6fZ-0006vJ-68
	for mharc-bug-ghostscript@gnu.org; Thu, 07 Aug 2008 10:40:49 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1KR4zt-00064P-0s
	for bug-ghostscript@gnu.org; Thu, 07 Aug 2008 08:53:41 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1KR4zp-0005y1-Sg
	for bug-ghostscript@gnu.org; Thu, 07 Aug 2008 08:53:40 -0400
Received: from [199.232.76.173] (port=35979 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1KR4zp-0005xp-Oq
	for bug-ghostscript@gnu.org; Thu, 07 Aug 2008 08:53:37 -0400
Received: from mgate.gpm-merbelsrod.de ([194.25.96.35]:41207)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <dieter.steinhaeuser@gpm.eu>) id 1KR4zp-0007Ye-1B
	for bug-ghostscript@gnu.org; Thu, 07 Aug 2008 08:53:37 -0400
Received: from esx-ex2007.gpm-local.de (esx-ex2007.gpm-local.de
	[192.168.90.65])
	by mgate.gpm-merbelsrod.de (8.13.8+Sun/8.13.8) with ESMTP id
	m77CrCii029715
	for <bug-ghostscript@gnu.org>; Thu, 7 Aug 2008 14:53:23 +0200 (CEST)
Received: from esx-ex2007.gpm-local.de ([192.168.90.65]) by
	esx-ex2007.gpm-local.de ([192.168.90.65]) with mapi;
	Thu, 7 Aug 2008 14:53:12 +0200
From: =?iso-8859-1?Q?Steinh=E4user=2C_Dieter?= <dieter.steinhaeuser@gpm.eu>
To: "'bug-ghostscript@gnu.org'" <bug-ghostscript@gnu.org>
Date: Thu, 7 Aug 2008 14:53:11 +0200
Thread-Topic: Aufruf aus Javascript liefert: /usr/lib/dld.sl: Unresolved
	symbol: jpeg_resync_to_restart (code)  from /usr/local/bin//gs
Thread-Index: Acj4jIyJNBfCnFRHTcG6sXXklv+CgA==
Message-ID: <09A0F07C3C843744BD0069C1C32ACBE0025D2CAF51@esx-ex2007.gpm-local.de>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: de-DE, en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4)
X-Mailman-Approved-At: Thu, 07 Aug 2008 10:40:47 -0400
Subject: Aufruf aus Javascript liefert: /usr/lib/dld.sl: Unresolved symbol:
 jpeg_resync_to_restart (code)  from /usr/local/bin//gs
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Aug 2008 12:53:41 -0000

Hello,
we use a java application for invoicing services.
The script has to take .ps files and pack them into .tiff, but there comes =
an error.
HP-UX 11.11, Java 1.6, Ghostscript 8.62

1stbp Message Version 2.7.23
Thu Aug 07 12:27:20 CEST 2008 DB version: 2
Thu Aug 07 12:27:20 CEST 2008 DB integrity: true
Thu Aug 07 12:27:25 CEST 2008 Work Init
Thu Aug 07 12:27:25 CEST 2008 Upload ASC
Thu Aug 07 12:27:25 CEST 2008 Upload PS
Thu Aug 07 12:27:25 CEST 2008 Signature:init
Thu Aug 07 12:27:25 CEST 2008 Invoking ghostscript
Thu Aug 07 12:27:26 CEST 2008 Err:
/usr/lib/dld.sl: Unresolved symbol: jpeg_resync_to_restart (code)  from /us=
r/local/bin//gs

Thu Aug 07 12:27:26 CEST 2008 Error generating tiff. Ghostscript return cod=
e 134
Thu Aug 07 12:27:26 CEST 2008 Sending mail with error to administrator
.
.
.
Can You help?
---
Mit freundlichen Gr=FC=DFen
Dieter Steinh=E4user
Leiter EDV
Tel. 036878/64-808
Fax 036878/64-240

Ger=E4te- und Pumpenbau GmbH Merbelsrod
Dr. Eugen Schmidt
Schwarzbacher Str. 28
98673 Merbelsrod

Amtsgericht Jena, HRB 300562 Gesch=E4ftsf=FChrer: Dr. Eugen Schmidt

http://www.gpm.eu

Wiedergabe sowie Vervielf=E4ltigung dieser vertraulichen Unterlage, Verwert=
ung und Mitteilung ihres Inhaltes sind nicht ohne unsere vorherige Genehmig=
ung gestattet. Zuwiderhandlungen verpflichten zum Schadensersatz. Alle Rech=
te f=FCr den Fall der Patenterteilung oder Gebrauchsmusteranmeldung vorbeha=
lten.

The copying use, distribution of the confidential and proprietary informati=
on contained in this document is strictly prohibited without prior written =
consent. Any breach shall subject the infringing party  to remedies. The ow=
ner reserves all rights in the event of the grant of a patent or the regist=
ration of a utility model or design.






From MAILER-DAEMON Sun Aug 24 16:26:51 2008
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1KXMAk-0003Zz-V0
	for mharc-bug-ghostscript@gnu.org; Sun, 24 Aug 2008 16:26:51 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1KXFwW-0007Ih-D7
	for bug-ghostscript@gnu.org; Sun, 24 Aug 2008 09:47:44 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1KXFwS-0007HM-6r
	for bug-ghostscript@gnu.org; Sun, 24 Aug 2008 09:47:43 -0400
Received: from [199.232.76.173] (port=51488 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1KXFwR-0007HJ-TQ
	for bug-ghostscript@gnu.org; Sun, 24 Aug 2008 09:47:40 -0400
Received: from fk-out-0910.google.com ([209.85.128.186]:55002)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <mardy.tardi@gmail.com>) id 1KXFwR-0006bt-96
	for bug-ghostscript@gnu.org; Sun, 24 Aug 2008 09:47:39 -0400
Received: by fk-out-0910.google.com with SMTP id 18so785862fkq.10
	for <bug-ghostscript@gnu.org>; Sun, 24 Aug 2008 06:47:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:subject:content-type
	:content-transfer-encoding;
	bh=K6gIsWg4/FCtHO+cBNL+gRrnuvZixvHF0i+eIYbjYic=;
	b=VALDrYqR5SYpCH0ED/vn3LzRDPW0LlXjru33DIGUd68hyNINUjYD/AaDYhzNROCbrg
	uSMU3TqWPuTvp2RrYIfKXT51Rl3qqnvdPfem85UWo9lWY922nbf08/29+gn+f9lfDyEs
	Va4nsRyylDrP6pSsBGg9HMfYGfWyBzpsoRVcE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	b=OKW6VJxRhGU0wRvmn0KuWITKFWLPfNaxXGSb3BY8U0aLH+DkxaOee9zSBmWpTwRbLX
	d3y6uT/HpK1l2AaVobpxUoaJFSuOkjGfsnfWOe395HlEUrbLHnnJic84M0csQc2tGdp6
	MRxQvACqumlQHPJy8ETMWo2bqhWoGrSnCgxUE=
Received: by 10.181.24.14 with SMTP id b14mr1658284bkj.22.1219585656631;
	Sun, 24 Aug 2008 06:47:36 -0700 (PDT)
Received: from ?192.168.255.3? ( [88.112.255.195])
	by mx.google.com with ESMTPS id 21sm2860673fkx.13.2008.08.24.06.47.35
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 24 Aug 2008 06:47:35 -0700 (PDT)
Message-ID: <48B16674.1080708@gmail.com>
Date: Sun, 24 Aug 2008 16:47:32 +0300
From: Alberto Mardegan <mardy.tardi@gmail.com>
User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509)
MIME-Version: 1.0
To: bug-ghostscript@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Sun, 24 Aug 2008 16:26:50 -0400
Subject: Convert PS/PDF to grayscale (vector)
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 24 Aug 2008 13:47:44 -0000

Hi all!
   I'm looking for a way to convert a PDF file to grayscale, without 
compromising the quality (and possibly the size of the file) too much. I 
found the gs driver psgray that does a good job, but unfortunately it 
also rasterizes the file.
Somewhere I found the utility pscol which converts all vector graphics 
of a PS file into grayscale, without other losses of information, but 
unfortunately it leaves the bitmap objects untouched (i.e., they remain 
in colors).
Is there some parameter to pswrite (or pdfwrite) that does the trick?
Or any other ways for me to get to the goal?

I was also having a look at GS sourcecode, just in case I'll ever find 
the motivation to do the hack myself; what should be done there, to add 
a driver option (to pswrite) to convert everything into grayscale? I 
found the functions psw_copy_color(), psw_fill_{path,mask,rectangle}() 
and psw_stroke_path(); is that all? How about fonts?

Sorry for asking such many questions all at once. :-)
TIA,
   Alberto



