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
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.
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.
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
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
Ok, IT_Techno there is a library that could helps you to perform your task
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
And he already said he didnt want to use a 3rd party library
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
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.