SHA256
1
0
forked from pool/transfig
transfig/transfig.3.2.5-cups.dif

52 lines
1.8 KiB
Plaintext
Raw Normal View History

--- fig2dev/dev/genps.c
+++ fig2dev/dev/genps.c 2008-10-08 15:27:05.095587461 +0200
@@ -686,6 +686,8 @@ F_compound *objects;
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 */
@@ -694,6 +696,9 @@ F_compound *objects;
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);
@@ -711,10 +716,6 @@ F_compound *objects;
}
- /* 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;
@@ -753,6 +754,7 @@ F_compound *objects;
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();
@@ -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");