diff options
| author | Manolo Gouy <Manolo> | 2011-06-20 13:23:05 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-06-20 13:23:05 +0000 |
| commit | 77e393f9b6fd9d92a21a05dbc53d1a062320c299 (patch) | |
| tree | 3933ccae0fd6af803216c3c3b2c606531a2d63bc | |
| parent | 258949918ce47d43fe753c8d31b78a76e220e7e9 (diff) | |
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
| -rw-r--r-- | src/Fl_PostScript.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index d02919379..36bd2d6b1 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -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{ |
