From MAILER-DAEMON Tue Aug 25 14:12:09 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Mg0V7-0004qa-97
	for mharc-bug-ghostscript@gnu.org; Tue, 25 Aug 2009 14:12:09 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Mg0V5-0004q4-Kh
	for bug-ghostscript@gnu.org; Tue, 25 Aug 2009 14:12:07 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1Mg0V3-0004pN-P7
	for bug-ghostscript@gnu.org; Tue, 25 Aug 2009 14:12:07 -0400
Received: from [199.232.76.173] (port=59928 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Mg0V3-0004pH-Ju
	for bug-ghostscript@gnu.org; Tue, 25 Aug 2009 14:12:05 -0400
Received: from qmta10.emeryville.ca.mail.comcast.net ([76.96.30.17]:42884)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <bergenpeak@comcast.net>) id 1Mg0V2-0008Mm-1D
	for bug-ghostscript@gnu.org; Tue, 25 Aug 2009 14:12:05 -0400
Received: from OMTA24.emeryville.ca.mail.comcast.net ([76.96.30.92])
	by QMTA10.emeryville.ca.mail.comcast.net with comcast
	id YhwJ1c0021zF43QAAiC2tR; Tue, 25 Aug 2009 18:12:02 +0000
Received: from [192.168.1.30] ([174.51.166.68])
	by OMTA24.emeryville.ca.mail.comcast.net with comcast
	id YiFC1c00M1Us8au8kiFD0s; Tue, 25 Aug 2009 18:15:13 +0000
Message-ID: <4A942A72.50604@comcast.net>
Date: Tue, 25 Aug 2009 12:16:18 -0600
From: "bergenpeak@comcast.net" <bergenpeak@comcast.net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
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-operating-system: by monty-python.gnu.org: Genre and OS details not
	recognized.
Subject: ps2pdf and the right output size
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: Tue, 25 Aug 2009 18:12:08 -0000


I'm using a tool which generates a postscript file where the bounding 
box doesn't necessarily correlate to a specific page type (8.5x11, 
etc.).   In fact, the PS page size is much larger than most page sizes, 
it might be as large as 50in x 50in etc.

ps2pdf will create a pdf output that:

* uses the default page size
* uses the page size if a page type if specified on the command line
* uses X and Y dimensions if provided in the command line.

I've hacked up a script which gen's the PS, pulls out the 
pageboundingbox X and Y sizes out of the PS, and then passes these 
values to ps2pdf via the command line.  

This works ok but I'm wondering if there's a way to tell ps2pdf to just 
set the pdf page size to the pageboundingbox X and Y sizes defined in PS 
thus eliminating the need for me to determine these and feed them to 
ps2pdf via the command line.


Thanks




From MAILER-DAEMON Fri Aug 28 13:08:49 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Mh4wT-0005li-Q0
	for mharc-bug-ghostscript@gnu.org; Fri, 28 Aug 2009 13:08:49 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Mh4wS-0005lM-1t
	for bug-ghostscript@gnu.org; Fri, 28 Aug 2009 13:08:48 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1Mh4wN-0005jL-AO
	for bug-ghostscript@gnu.org; Fri, 28 Aug 2009 13:08:47 -0400
Received: from [199.232.76.173] (port=36000 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Mh4wN-0005jI-88
	for bug-ghostscript@gnu.org; Fri, 28 Aug 2009 13:08:43 -0400
Received: from uu01msg-smtp02.soliscom.uu.nl ([131.211.4.105]:5246)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <W.M.BergmannTiest@uu.nl>) id 1Mh4wM-0006as-PP
	for bug-ghostscript@gnu.org; Fri, 28 Aug 2009 13:08:42 -0400
Received: from uu01msg-exb04.soliscom.uu.nl ([131.211.4.85]) by
	uu01msg-smtp02.soliscom.uu.nl with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 28 Aug 2009 17:52:09 +0200
Received: from uu01msg-exf04.soliscom.uu.nl ([131.211.4.109]) by
	uu01msg-exb04.soliscom.uu.nl with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 28 Aug 2009 17:52:08 +0200
Received: from [10.131.33.230] ([80.187.215.120]) by
	uu01msg-exf04.soliscom.uu.nl with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 28 Aug 2009 17:52:08 +0200
In-Reply-To: <4A942A72.50604@comcast.net>
References: <4A942A72.50604@comcast.net>
Mime-Version: 1.0 (Apple Message framework v753.1)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <CA8E220C-1AFA-423B-9050-EC2BD51F7981@uu.nl>
Content-Transfer-Encoding: 7bit
From: Wouter Bergmann Tiest <W.M.BergmannTiest@uu.nl>
Date: Fri, 28 Aug 2009 17:52:26 +0200
To: "bergenpeak@comcast.net" <bergenpeak@comcast.net>
X-Mailer: Apple Mail (2.753.1)
X-OriginalArrivalTime: 28 Aug 2009 15:52:08.0718 (UTC)
	FILETIME=[7FC012E0:01CA27F7]
X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+
X-Greylist: delayed 4590 seconds by postgrey-1.27 at monty-python;
	Fri, 28 Aug 2009 13:08:40 EDT
Cc: bug-ghostscript@gnu.org
Subject: Re: ps2pdf and the right output size
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: Fri, 28 Aug 2009 17:08:48 -0000

Hi mr/mrs Anonymous,

On 25 Aug 2009, at 20:16, bergenpeak@comcast.net wrote:

> I've hacked up a script which gen's the PS, pulls out the  
> pageboundingbox X and Y sizes out of the PS, and then passes these  
> values to ps2pdf via the command line.
> This works ok but I'm wondering if there's a way to tell ps2pdf to  
> just set the pdf page size to the pageboundingbox X and Y sizes  
> defined in PS thus eliminating the need for me to determine these  
> and feed them to ps2pdf via the command line.


Apparently you have reimplemented the perl script "epstopdf" by  
Sebastian Rahtz et al. which does exactly that: extract the bounding  
box and create the right size PDF, see
http://tug.ctan.org/tex-archive/support/epstopdf/
Unfortunately, there is not a more elegant way. Even Adobe's own  
Distiller needs to be told the correct page size of the PDF when  
converting from PostScript. Incidentally, if you're on a Mac with OS- 
X, everything just works out of the box by opening your PS file in  
Preview and saving as PDF, or by using the command line program  
"pstopdf".

Regards,

Wouter Bergmann Tiest



