-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
booklet/nup: handle existing page rotation #349
Comments
It is not that simple unfortunately.
What's your specific use case? |
My use case is that I have a pdf that I'm trying to run through Makes sense about the different pages having different dimensions/rotation. |
I see. I need to go back and double check but I thought booklet was taking care of page rotation. |
OK, so any existing rotation value != 0 for input file pages needs to be taken into account during the rendering phase on the new page like it is done for stamping. Unfortunately I was wrong. 😞 I thought that's already in there in: nup.go The general idea is to internalize the page rotation and carry it over into the content stream via a transform matrix. Since this is quite tricky it will not be part of the upcoming release that I am about to push. |
This has been addressed with the latest commit. |
When reading a pdf that has been rotated (either using pdfcpu or some other tool),
PageDims
(media box?) within pdfcpu doesn't seem to know about the rotation.Example:
The text was updated successfully, but these errors were encountered: