Bug 32799

Summary: position in bounding box
Product: [Applications] kghostview Reporter: ryxm
Component: generalAssignee: Wilco Greven <greven>
Status: CLOSED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.12   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description ryxm 2001-09-22 15:33:04 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kghostview
Version:           0.12 (using KDE 2.2.0 )
Severity:          normal
Installed from:    Red Hat Linux 7.1.93
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-96)
OS:                Linux (i686) release 2.4.2-2
OS/Compiler notes: 

For Postscript files with a bounding box provided kghostscript properly sets the window size to match the size of the bounding box but it does not shift the image so that the corner of the bounding box matches the corner of the window.  As a result the display is offset with big margins on two edges and the opposite edges of the Postscript image cut off.  You can see the whole picture properly if you shift the page size to e.g. letter.  This feature works correctly in the Gnome Postscript viewer.  For an example try http://t2.lanl.gov/data/astro/s-ddn.ps.

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Wilco Greven 2001-09-23 17:47:26 UTC
Hi

On Sat Sep 22 2001 at 03:33:04PM -0000 ryxm@lanl.gov wrote:
> Package: kghostview
> Version: 0.12 (using KDE 2.2.0 )
> Severity: normal
> Installed from:    Red Hat Linux 7.1.93
> Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-96)
> OS:                Linux (i686) release 2.4.2-2
> OS/Compiler notes: 
> 
> For Postscript files with a bounding box provided kghostscript properly sets the window size to match the size of the bounding box but it does not shift the image so that the corner of the bounding box matches the corner of the window.  As a result the display is offset with big margins on two edges and the opposite edges of the Postscript image cut off.  You can see the whole picture properly if you shift the page size to e.g. letter.  This feature works correctly in the Gnome Postscript viewer.  For an example try http://t2.lanl.gov/data/astro/s-ddn.ps.

Yes kghostview clearly does it wrong. I'll see if I can fix it for KDE-3.0.

Greetings
Wilco
Comment 2 Wilco Greven 2001-10-18 23:31:29 UTC
On Sun Sep 23 2001 at 07:47:26PM +0200 Wilco Greven wrote:
> Hi
> 
> On Sat Sep 22 2001 at 03:33:04PM -0000 ryxm@lanl.gov wrote:
> > Package: kghostview
> > Version: 0.12 (using KDE 2.2.0 )
> > Severity: normal
> > Installed from:    Red Hat Linux 7.1.93
> > Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-96)
> > OS:                Linux (i686) release 2.4.2-2
> > OS/Compiler notes: 
> > 
> > For Postscript files with a bounding box provided kghostscript properly sets the window size to match the size of the bounding box but it does not shift the image so that the corner of the bounding box matches the corner of the window.  As a result the display is offset with big margins on two edges and the opposite edges of the Postscript image cut off.  You can see the whole picture properly if you shift the page size to e.g. letter.  This feature works correctly in the Gnome Postscript viewer.  For an example try http://t2.lanl.gov/data/astro/s-ddn.ps.
> 
> Yes kghostview clearly does it wrong. I'll see if I can fix it for KDE-3.0.

Ok it is fixed in HEAD now.

Greetings
Wilco