Fail to display some PostScript files correctly (show 1 out of 3 pages, and rotated)
Submitted by Germán Poo-Caamaño
Assigned to Carlos Campos @carlosgc
Link to original bug (#106803)
Description
Created attachment 139999 PS test case
As reported in https://gitlab.gnome.org/GNOME/evince/issues/423
When Spectre render the PS, it only shows page 3, saying that the document only has 1 page. The page is shown rotate 180 degress.
When Spectre converts to PDF, it shows the 3 pages correctly.
$ ./spectre-test News.ps out Testing libspectre version: 0.2.8 process 17712: spectre_document_load: assertion `document != NULL' failed (spectre-document.c:57) Rendering document Rendering document at 2x Document format: PS-Adobe-2.0 Postscript language level: 0 Encapsulated PostScript: No Number of pages: 1 Title: Unknown Creator: PageStream v2.0 For: Who Created This Document Creation date: Not Available Document Orientation: Portrait Page 0 Page label: (null) Page size: 612 x 792 Page orientation: Portrait Error getting page 0 by its label (null): page is invalid Rendering page 0 slice 204, 264, 204, 264 Rendering page 0 in a4 page
Attachment 139999, "PS test case":
News.ps