Page size detected incorrectly
Submitted by Germán Poo-Caamaño
Assigned to Carlos Campos @carlosgc
Description
Created attachment 74958 PS test case
This bug was reported a long time ago in https://bugzilla.gnome.org/show_bug.cgi?id=346160
The page size is reported as letter when it should be A4.
In the test case reported, spectre_page_get_size returns 612x792, but it should be 592x842.
The document does not have PageBoundingBox, PageOrientation, PageMedia nor PaperSize. IIRC, it is defined in:
/Forms-A4 {/pageheight 842 def 1 dict dup /PageSize [595 842] put systemdict /setpagedevice known {dup setpagedevice} if /Top-margin 816 def p} def
and then:
% Document starts here
Forms-A4 Point-10cpi Normal-font newfont Forms-A4 Normal-font newfont Normal-font newfont Normal-font newfont Point-17cpi newfont p %%Page: 1 1
If I use ps2pdf to convert the document, and then open the PDF with evince, the page size is A4 (as expected).
Attachment 74958, "PS test case":
two-lines-missing.ps