Open thbl opened 6 years ago
The HummusJS method for adding content on top of an existing page content via PDFPageModifier does not allow for much more than adding content. So rotating a page using the presented method is not possible together with it.
There are several options to approach a possible solution. One that you suggested is to create a rotated version and from that version create one with text. Another option is to port the modification code to JavaScript (shouldn't be too hard, it was originally that way), and then do both rotation and text addition in the same call.
Thanks @galkahana But i'm now considering just flipping the text with #167 My new problem is that when text is fliped i get it inverted, like "Hello Fanta" text I get "atnaF olleH" :/
so @galkahana made a nice example on how to rotate a page, is it possible to write text after rotating, or do i need to "re open it" ?