![rotate pdf page certain degree rotate pdf page certain degree](https://i.stack.imgur.com/yYpga.png)
Stream.Write(documentSource, 0, documentSource.Length) Public PdfDocument FlipPage(byte documentSource, int pageNumber)
![rotate pdf page certain degree rotate pdf page certain degree](https://www.pdfconverters.net/wp-content/uploads/2018/05/rotate-pdf-in-pdfconvertfree.jpg)
Here's the code I'm currently using for rotating pages, and adding text to pages: // This is how I'm rotating the page.
#ROTATE PDF PAGE CERTAIN DEGREE HOW TO#
I can't seem to find any good samples of how to rotate a page in a PdfSharp document the correct way, so some guidance would be tremendously helpful and very much appreciated.
![rotate pdf page certain degree rotate pdf page certain degree](https://i.stack.imgur.com/HfC3D.png)
The problem with this is, after the document is rotated (the one time it will rotate), if a user tries to add text to the document somewhere, it seems to reverse the coordinates it places the text at, and the text is upside down.Īll of this tells me that, ultimately, I'm doing the page rotation wrong somehow. I pass in the text and some coordinates, and it writes the text at those coordinates in the document, and all is well. Another strange thing associated with this function, is that I've also got another method that gets called that will add some text to the document at selected locations. Any subsequent calls to this function don't seem to work anymore. I've created a function to do this, which seems to work, but only the first time its called. This is almost always a 180 degree rotation of the page. Users need to be able to review these documents, and one of the more common things they need to be able to do with these documents is flip/rotate individual pages when they were put into the fax machine the wrong way. I'm creating a web app that will be used for maintaining PDF documents in our database that come in through an automated system when we receive faxes.