Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

number-up = 6 is broken #1697

Closed
michaelrsweet opened this issue May 16, 2006 · 2 comments
Closed

number-up = 6 is broken #1697

michaelrsweet opened this issue May 16, 2006 · 2 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2.0
CUPS.org User: mike

It appears that number-up=6 is broken in 1.2.0 for portrait and landscape printing. This is a regression from 1.1.x.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"str1697.patch":

Index: pstops.c

--- pstops.c (revision 5538)
+++ pstops.c (working copy)
@@ -2700,7 +2700,7 @@
}
else
{

  •   x = pos % 2;
    
  •   x = pos & 1;
    y = pos / 2;
    
         if (doc->number_up_layout & PSTOPS_LAYOUT_NEGATEX)
    

    @@ -2719,17 +2719,16 @@
    w = l * bboxw / bboxl;
    }

  •      tx = 0.5 * (pagel * 0.5 - w);
    
  •      ty = 0.5 \* (pagew \* 0.333 - l + pagew - pagel);
    
  •      tx = 0.5 \* (pagel - 2 \* w);
    
  •      ty = 0.5 * (pagew - 3 * l);
    
       if (doc->normal_landscape)
    
  •        doc_printf(doc, "0 %d translate -90 rotate\n", bboxl);
    
  •        doc_printf(doc, "0 %.1f translate -90 rotate\n", pagel);
    

    else

  •   doc_printf(doc, "%d 0 translate 90 rotate\n", bboxw);
    
  •   doc_printf(doc, "%.1f 0 translate 90 rotate\n", pagew);
    
       doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n",
    
  •                 tx + x \* pagel \* 0.5, ty + y \* pagew \* 0.333,
    
  •        l / bboxl, w / bboxw);
    
  •                 tx + x * w, ty + y * l, l / bboxl, w / bboxw);
     }
    

    else
    {
    @@ -2765,17 +2764,17 @@
    l = w * bboxl / bboxw;
    }

  •      tx = 0.5 * (pagel * 0.333 - w + pagel - pagew);
    
  •      ty = 0.5 \* (pagew \* 0.5 - l);
    
  • tx = 0.5 \* (pagel - 3 \* w);
    
  • ty = 0.5 * (pagew - 2 * l);
    
       if (doc->normal_landscape)
    
  •   doc_printf(doc, "%d 0 translate 90 rotate\n", bboxw);
    
  •   doc_printf(doc, "%.1f 0 translate 90 rotate\n", pagew);
    

    else

  •        doc_printf(doc, "0 %d translate -90 rotate\n", bboxl);
    
  •        doc_printf(doc, "0 %.1f translate -90 rotate\n", pagel);
    
       doc_printf(doc, "%.1f %.1f translate %.3f %.3f scale\n",
    
  •                 tx + x \* pagel \* 0.333, ty + y \* pagew \* 0.5,
    
  •        w / bboxw, l / bboxl);
    
  •                 tx + w \* x, ty + l \* y, w / bboxw, l / bboxl);
    
    • }
      break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant