Guest User

Untitled

a guest
Jul 4th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. how to rotate pdf using itextsharp library
  2. Document doc = new Document(PageSize.A4.Rotate());
  3.  
  4. Document pdf = new Document(PageSize.A4);
  5. PdfWriter.GetInstance(pdf, new FileStream("file.pdf", System.IO.FileMode.Create));
  6. pdf.Open();
  7. pdf.Add(new Paragraph("This is a pdf document!"));
  8. pdf.Close();
Advertisement
Add Comment
Please, Sign In to add comment