Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Landscape PostScript output broken in 1.4.5 #3722

Closed

Description

@michaelrsweet

Version: 1.4.5
CUPS.org User: mike

A change was made in CUPS 1.4.5's pstops filter that breaks landscape printing of PostScript files.

Activity

  1. michaelrsweet commented on Nov 17, 2010

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Fixed in Subversion repository.

  2. michaelrsweet commented on Nov 17, 2010

    @michaelrsweet
    ContributorAuthor

    "str3722.patch":

    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 &&

  3. added this to the Stable milestone on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions