Skip to content

Comments

adding a rotate feature for pdfs#133

Merged
itsjunetime merged 5 commits intoitsjunetime:mainfrom
IshDeshpa:rotate_feature
Feb 19, 2026
Merged

adding a rotate feature for pdfs#133
itsjunetime merged 5 commits intoitsjunetime:mainfrom
IshDeshpa:rotate_feature

Conversation

@IshDeshpa
Copy link
Contributor

Currently a work in progress. I need to figure out how to rotate in a way such that I can scroll past the original rectangular bounds of the page when zoomed in. Also for some reason scrolling too much starts scaling the page a bit.

I had to fix a bug in mupdf involving incorrect 270 deg rotation matrix to get it to work in its current form.

Any feedback on implementation details would be much appreciated, as well as how to go forward from what I have now. I'm new to Rust so let me know if there's anything that is wrong.

@itsjunetime
Copy link
Owner

itsjunetime commented Feb 1, 2026

Yeah, I think this generally makes sense, no real issues right now. Thanks for doing this :) You'll want to run cargo fmt --all in the project root directory and then push again to get CI to pass, and I'll take a look at it again once we have CI verifying everything.

@IshDeshpa IshDeshpa changed the title adding a rotate feature for pdfs (WIP) adding a rotate feature for pdfs Feb 12, 2026
@IshDeshpa IshDeshpa marked this pull request as ready for review February 12, 2026 00:48
@IshDeshpa
Copy link
Contributor Author

Think this is ready for review.

Copy link
Owner

@itsjunetime itsjunetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great and seems to work perfectly! All the code is good, and the only thing that I think needs changing is that the r key binding is not present in the help text (which appears when you hit ?) - could you add it there? Once it's there, I'll be happy to merge this in.

@IshDeshpa
Copy link
Contributor Author

For sure!

@itsjunetime
Copy link
Owner

Thank you :)

@itsjunetime itsjunetime merged commit 52994b8 into itsjunetime:main Feb 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants