Page size detected incorrectly even with BoundingBox
Submitted by Germán Poo-Caamaño
Assigned to Carlos Campos @carlosgc
Description
Created attachment 74975 PS test case
This bug was reported in https://bugzilla.gnome.org/show_bug.cgi?id=645876 and I think it is different than https://bugs.freedesktop.org/show_bug.cgi?id=60982 because in the document attached there is information of the page size in the beginning of the file:
%%DocumentSuppliedResources: (atend) %%DocumentMedia: plain 595 841 0 () () %%BoundingBox: 0 0 595 841 %%Pages: 2
the output of spectre-test shows the wrong dimensions of each page (letter size), but still at the end says A4 page which does not seem to be taken in consideration.
$ test/spectre-test /tmp/b.ps Testing libspectre version: 0.2.7 process 4592: spectre_document_load: assertion `document != NULL' failed (spectre-document.c:57) Rendering document Rendering document at 2x GPL Ghostscript 9.05: **** Could not open the file (null)/output.pdf . fatal internal error -100Error exporting document as pdf: exporter error Error exporting document as ps: exporter error Error saving document as (null)/document-copy.ps: save error GPL Ghostscript 9.05: **** Could not open the file (null)/document-copy.pdf . fatal internal error -100Error saving document as (null)/document-copy.pdf: save error Document format: PS-Adobe-3.0 Postscript language level: 0 Encapsulated PostScript: No Number of pages: 2 Title: (null) Creator: (null) For: (null) Creation date: (null) Document Orientation: Portrait Page 0 Page label: 1 Page size: 612 x 792 Page orientation: Landscape Page 1 Page label: 2 Page size: 612 x 792 Page orientation: Landscape Rendering page 0 slice 204, 264, 204, 264 Rendering page 0 in a4 page
Attachment 74975, "PS test case":
b.ps