daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var path = Server.MapPath("test.pdf");
  2.  
  3. FileInfo dest = new FileInfo(path);
  4.  
  5. var writer = new PdfWriter(dest);
  6. var pdf = new PdfDocument(writer);
  7. var document = new Document(pdf);
  8. document.Add(new Paragraph("hello world"));
  9. document.Close();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top