gv sets an invalid PageSize
Bug #151980 reported by
Jerome Abela
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
Changed in gv: | |
status: | New → Fix Released |
To post a comment you must log in.
Although this bug has nott been known upstream, it has been fixed in release 3.6.3 - please update.