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

Add mirror option #121

Open
cfcurtis opened this issue Oct 26, 2021 · 2 comments
Open

Add mirror option #121

cfcurtis opened this issue Oct 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@cfcurtis
Copy link
Owner

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

@cfcurtis cfcurtis added the enhancement New feature or request label Oct 26, 2021
@mara004
Copy link
Contributor

mara004 commented Nov 18, 2021

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

@cfcurtis
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants