gv sets an invalid PageSize

Bug #151980 reported by Jerome Abela
2
Affects Status Importance Assigned to Milestone
gv (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gv

The following PostScript program gets the size of the paper from the PostScript environment, and prints it.

%!PS
/pt2cm { .0353 mul (aaaaaaaaaa) cvs } def
/Helvetica findfont 14 scalefont setfont
30 30 moveto (PageSize: ) show currentpagedevice /PageSize get dup
0 get pt2cm show (cm x ) show 1 get pt2cm show (cm) show showpage

When ran with "gs -sDEVICE=x11", it gives a reasonable result:
  PageSize: 20.9927cm x 29.6954cm
On a real printer with A4 paper, it prints similar results.

When ran with gv, it displays nonsense:
  PageSize: 0.0044125cm x 0.0044125cm

Revision history for this message
Markus Steinborn (upstream maintainer of GNU gv) (msteinbo) wrote :

Although this bug has nott been known upstream, it has been fixed in release 3.6.3 - please update.

Daniel T Chen (crimsun)
Changed in gv:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.