Store rotation #1942
-
Before you start - checklist
DescriptionCurrently we are using this wonderful and easy to use lib to show existing pdfs - which works great! But we have an option to rotate each page. Proposed solution
AlternativesNo response Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Sorry, where are these methods coming from? Do you have a code example (might be non functional) of you're trying to achieve? |
Beta Was this translation helpful? Give feedback.
-
Currently, I am sick, but i am using those methods coming from the document instance I get when listening to "onLoadSuccess". On the frontendside, we implemented some rotation buttons per page or the whole document. As workaround, we are storing the rotations per page and passing them to the backend, which applies the rotation per page and uploads the file to s3. But I have to recheck it again. It might be an implementation issue, where we passed 0 as default rotation, because we thought after rotating the page and uploading the file, the rotation is 0 again per default. If this makes sense. But it seems the page is not really (natively?!) rotated, since after setting the default rotation to 0, it rotates it back. Thanks for your feedback! |
Beta Was this translation helpful? Give feedback.
Ohhh. Well, this package does not support saving PDFs. Rotate prop, similarly to width, height props, just changes the way existing PDF displays.