2 Replies - 14269 Views - Last Post: 26 March 2009 - 09:17 AM Rate Topic: -----

#1 Poornima Mani   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 178
  • Joined: 25-January 09

Text to pdf in C#

Post icon  Posted 26 March 2009 - 09:12 AM

Hi
How can i write the contents of text file into a pdf file using C#?
Is This A Good Question/Topic? 0
  • +

Replies To: Text to pdf in C#

#2 cipher_nemo   User is offline

  • New D.I.C Head

Reputation: 6
  • View blog
  • Posts: 35
  • Joined: 17-July 08

Re: Text to pdf in C#

Posted 26 March 2009 - 09:17 AM

Instead of reinventing the wheel, PDFSharp is your best option. It's open source and specifically geared towards what you want to do in .NET.

http://pdfsharp.com/PDFsharp/

This post has been edited by cipher_nemo: 26 March 2009 - 09:18 AM

Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1660
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Text to pdf in C#

Posted 26 March 2009 - 09:17 AM

You're going to need a third party component, something like iText. Once you get that, here's an example on how to use it in C#. Hope that helps :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1