2008-10-12 00:29:41 +02:00
|
|
|
--- fig2dev/dev/genps.c
|
2009-12-16 17:02:40 +01:00
|
|
|
+++ fig2dev/dev/genps.c 2008-10-08 15:27:05.095587461 +0200
|
|
|
|
@@ -686,6 +686,8 @@ F_compound *objects;
|
2008-10-12 00:29:41 +02:00
|
|
|
height = userury-userlly+1;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ /* put in the magnification for information purposes */
|
|
|
|
+ fprintf(tfp, "%%Magnification: %.4f\n",metric? mag*76.2/80.0 : mag);
|
|
|
|
/* only include a pagesize command if PS */
|
|
|
|
if (!epsflag && !pdfflag) {
|
|
|
|
/* add comment for ghostview to recognize the page size */
|
2009-12-16 17:02:40 +01:00
|
|
|
@@ -694,6 +696,9 @@ F_compound *objects;
|
2008-10-12 00:29:41 +02:00
|
|
|
for (i=strlen(psize)-1; i>=0; i--)
|
|
|
|
psize[i] = tolower(psize[i]);
|
|
|
|
fprintf(tfp, "%%%%DocumentPaperSizes: %s\n",psize);
|
|
|
|
+ }
|
|
|
|
+ fprintf(tfp, "%%%%EndComments\n");
|
|
|
|
+ if (!epsflag && !pdfflag) {
|
|
|
|
fprintf(tfp, "%%%%BeginSetup\n");
|
|
|
|
fprintf(tfp, "[{\n");
|
|
|
|
fprintf(tfp, "%%%%BeginFeature: *PageRegion %s\n", papersize);
|
2009-12-16 17:02:40 +01:00
|
|
|
@@ -711,10 +716,6 @@ F_compound *objects;
|
2008-10-12 00:29:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- /* put in the magnification for information purposes */
|
|
|
|
- fprintf(tfp, "%%Magnification: %.4f\n",metric? mag*76.2/80.0 : mag);
|
|
|
|
- fprintf(tfp, "%%%%EndComments\n");
|
|
|
|
-
|
|
|
|
/* if the user wants an ASCII preview, route the rest of the eps to a temp file */
|
|
|
|
if (asciipreview) {
|
|
|
|
saveofile = tfp;
|
2009-12-16 17:02:40 +01:00
|
|
|
@@ -753,6 +754,7 @@ F_compound *objects;
|
|
|
|
|
2008-10-12 00:29:41 +02:00
|
|
|
if (pats_used)
|
|
|
|
fprintf(tfp,"/MyAppDict 100 dict dup begin def\n");
|
|
|
|
+ fprintf(tfp, "%%%%BeginProlog\n");
|
|
|
|
fprintf(tfp, "%s", BEGIN_PROLOG1);
|
|
|
|
/* define the standard colors */
|
|
|
|
genps_std_colors();
|
2009-12-16 17:02:40 +01:00
|
|
|
@@ -870,8 +872,10 @@ F_compound *objects;
|
|
|
|
if (multi_page) {
|
|
|
|
/* reset the matrix for multipage mode */
|
|
|
|
fprintf(tfp, "initmatrix\n");
|
|
|
|
+ fprintf(tfp, "%%%%EndProlog\n");
|
|
|
|
} else {
|
|
|
|
fprintf(tfp, " %.5f %.5f sc\n", scalex, scaley );
|
|
|
|
+ fprintf(tfp, "%%%%EndProlog\n");
|
|
|
|
if (!epsflag) {
|
|
|
|
fprintf(tfp,"%%%%Page: 1 1\n");
|
|
|
|
fprintf(tfp, "%%%%BeginPageSetup\n");
|