954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How To convert .doc file to .pdf file

Hi
anybody know how to convert a doc file to pdf using c# code
i need to create my owne application i donot want to use any one at internet

Best Regards,
IT_Techno

IT_Techno
Light Poster
41 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

If you dont want to use anyone on the internet, why would you be asking us? Arent we on the internet too?

The simple answer is you would need to read up on PDF format, as well as then the microsoft word format, and work from there.

Most people would use a PDF printer however.

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

It is wayyy to complicated to convert a doc to pdf, if you are just wanting to use your own code. I agree with LizR, use a pdf printer. You can use Ghostscript PDF Printer and call through code. I have also used pdf995. The pdf spec is fairly complicated and isn't something that you can just code in a short amount of time.

dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
 

hi
Sorry LaziR iam bad English speaker i do not mean anyone i mean any ready programe at internet to convert

and thank you to reply

Best Regards

IT_Techno
Light Poster
41 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

Then you need to do a heck of a lot of reading about the file format from word in its many versions, as well as a lot on how to write out PDF files.. Both will be a long and hard journey

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

Ok, IT_Techno there is a library that could helps you to perform your task

The iTextSharp

Here is a tutorial how to use it to convert your own document to pdf files within your own application

Tutorial
http://itextsharp.sourceforge.net/tutorial/index.html

Jugortha
Junior Poster
172 posts since Oct 2007
Reputation Points: 11
Solved Threads: 16
 

And he already said he didnt want to use a 3rd party library

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

Yes I know lizR, but anyway, this assembly could be nested to the hole application, or better he could reverse it and try to build his own assembly based on idea found there, may be it will be a suitable solution for him

Jugortha
Junior Poster
172 posts since Oct 2007
Reputation Points: 11
Solved Threads: 16
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You