pdfstitcher icon indicating copy to clipboard operation
pdfstitcher copied to clipboard

Add mirror option

Open cfcurtis opened this issue 4 years ago • 2 comments

Add the option to duplicate the stitched output on a second page in mirror view.

cfcurtis avatar Oct 26 '21 18:10 cfcurtis

What would the transformation matrix look like for horizontal/vertical mirroring?

mara004 avatar Nov 18 '21 20:11 mara004

Admittedly I haven't looked into it much because my new job is sucking up all my time right now, but I would probably start by trying to modify the Matrix property of the page xobject. For an X axis flip, I would try:

-1 0 0
 0 1 0
 0 0 1

which corresponds to [-1 0 0 1 0 0]. Similarly, for vertical I would try [1 0 0 -1 0 0]. However, there may also be some translation required, as I suspect this mapping would flip the content off the edge of the page.

cfcurtis avatar Nov 19 '21 17:11 cfcurtis