I am creating PDFs from xml I am looking for an API which also allows me to rotate text, Is there any API available for .net?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that you are going to use the library iTextSharp, as suggested in another answer (iText is a Java library; iTextSharp is a .NET port of it), here’s some examples. These are essentially stripped-down versions from Bruno Lowagie’s book iText in Action from Manning Publications.
(Note that the examples are written in Java, since I took them straight from the book, but you should be able to easily adapt them to the iTextSharp library and C#.)
Image rotation:
This is found in the book on page 155.
Text rotation:
This is found in the book on page 351-352.
where
eandfare translation values (the coordinates, essentially), andangleis the rotation angle.