B5 paper size in libspectre-0.2.6 is not correct

Bug #789173 reported by MarekH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libspectre (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: libspectre1

Description: Ubuntu 11.04
Release: 11.04

Affected packages:
a) libspectre1 - 0.2.6-1build1
-------------------------------------
Possibly also
b) libpoppler13 - 0.16.4-0ubuntu1.1
c) evince - 2.32.0-0ubuntu12.1

Problem description:

According to the source code of libspectre-0.2.6 (11.04 edition of Ubuntu) there is a problem with the interpretation of B5 paper size.

Namely in: libspectre-0.2.6/libspectre/ps.c, structure papersizes (lines 136-158)

B5 paper size is defined as 516x729 which corresponds to 516/72 inch x 729/72 inch size. This size is however JIS B5, not standard ISO B5 paper size, which should be cca. 499x709, or more precisely 176mmx250mm.

For more paper information about (standard/JIS) paper sizes:
http://en.wikipedia.org/wiki/Paper_size

Manual page of gs (contains the table of papersizes interpreted by gs):
http://linuxcommand.org/man_pages/gs1.html

[
This causes problem, when a test document is created in latex forcing to have b5paper size -> compiled to dvi -> dvips -t b5 produces a ps file which gives not correct dimensions of document when displayed in evince, in particular it provides 182 mm x 257 mm, i.e. JIS B5, but requested dimensions were ISO B5, i.e. 176 mm x 250 mm. When a pdf file is created via ps2pdf, the dimensions are correct.

As the attachment, I am sending the following files:
1) aaa.tex (Latex source)
2) aaa.dvi (produced by the command latex aaa)
3) aaa.ps (produced by dvips -t b5 aaa)
4) aaa.pdf (produced by ps2pdf aaa)

Symptoms in Evince:
a) the ps file gets wrong paper size in document info (JB5)
b) the pdf file's paper size is correct (B5)

]

Revision history for this message
MarekH (mhycko) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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