Index: filter/pstops.c =================================================================== --- filter/pstops.c (revision 9374) +++ filter/pstops.c (working copy) @@ -2417,18 +2417,6 @@ doc->new_bounding_box[3] = INT_MIN; /* - * See what the source content type is. When printing PostScript content we - * want to do scaling and orientation, but otherwise we don't want to change - * anything... - */ - - if ((content_type = getenv("CONTENT_TYPE")) == NULL) - content_type = "application/postscript"; - - if (!strcasecmp(content_type, "application/postscript")) - Orientation = 0; - - /* * AP_FIRSTPAGE_* and the corresponding non-first-page options. */ @@ -2522,6 +2510,9 @@ * (Only for original PostScript content) */ + if ((content_type = getenv("CONTENT_TYPE")) == NULL) + content_type = "application/postscript"; + if (!strcasecmp(content_type, "application/postscript")) { if ((val = cupsGetOption("fitplot", num_options, options)) != NULL &&