Added %%PageBoundingBox clause in each PostScript page so Evince, the Gnome doc

viewer recognizes page formats.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-06-20 13:23:05 +00:00
parent 258949918c
commit 77e393f9b6

View File

@ -633,6 +633,7 @@ void Fl_PostScript_Graphics_Driver::page(double pw, double ph, int media) {
}
++nPages;
fprintf(output, "%%%%Page: %i %i\n" , nPages , nPages);
fprintf(output, "%%%%PageBoundingBox: 0 0 %d %d\n", (int)pw, (int)ph);
if (pw>ph){
fprintf(output, "%%%%PageOrientation: Landscape\n");
}else{