Author: manolo
Date: 2011-06-20 06:23:05 -0700 (Mon, 20 Jun 2011)
New Revision: 8833
Log:
Added %%PageBoundingBox clause in each PostScript page so Evince, the Gnome doc 
viewer recognizes page formats.

Modified:
   branches/branch-1.3/src/Fl_PostScript.cxx

Modified: branches/branch-1.3/src/Fl_PostScript.cxx
===================================================================
--- branches/branch-1.3/src/Fl_PostScript.cxx   2011-06-20 13:09:41 UTC (rev 
8832)
+++ branches/branch-1.3/src/Fl_PostScript.cxx   2011-06-20 13:23:05 UTC (rev 
8833)
@@ -633,6 +633,7 @@
   }
   ++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{

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to