I also recommend use "PDF Focus .Net" for this. Now the company use new simple engine for this. check it!)
Here sample code for you how to Open PDF to MS Word in C# source of console program:
static void Main(string[] args)
{
if(args.Length<2)
args = new string[2] { @"c:\temp.pdf", @"c:\temp.rtf"};
//Convert PDF file to Word file
SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();
f.OpenPdf(args[0]);
if (f.PageCount > 0)
{
int result = f.ToWord(args[1]);
//Show Word document
if (result==0)
System.Diagnostics.Process.Start(args[1]);
}
}
I think what you're looking for is beyond what this forum can provide. These forums are not for asking for complete code or homework solutions for example. Please do the steps needed based on your requirement above, and if you then find yourself stuck or
do not understand a concept, then post to the forums with a specific question about that specific concept. We can explain to you various code concepts and help you to understand how to do something, but ultimately you need to be writing that code.
upamanyuroyc...
0 Points
10 Posts
Convert PDF to Word
Nov 16, 2012 09:36 AM|LINK
Dear All,
I need to convert a pdf to word document.
I know there are many third parties available in the web, some of which are free to use.
But I need a complete source of conversion so that I can modify accordingly, I cannot rely on third parties.
Will you please hep me with this, as my project work has been stalled due to this.
Thanks,
Upamanyu
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: Convert PDF to Word
Nov 16, 2012 10:40 AM|LINK
Take a look at this thread on MSDN Social, about half way down the page the post by Yoyo Jiang has numerous links to examples on how this is done. http://social.msdn.microsoft.com/Forums/pl-PL/csharpgeneral/thread/3f025305-7729-47df-81ba-38f1a938c9ac
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: Convert PDF to Word
Nov 16, 2012 10:41 AM|LINK
And on the same page, another user posted this:
I also recommend use "PDF Focus .Net" for this. Now the company use new simple engine for this. check it!) Here sample code for you how to Open PDF to MS Word in C# source of console program: static void Main(string[] args) { if(args.Length<2) args = new string[2] { @"c:\temp.pdf", @"c:\temp.rtf"}; //Convert PDF file to Word file SautinSoft.PdfFocus f = new SautinSoft.PdfFocus(); f.OpenPdf(args[0]); if (f.PageCount > 0) { int result = f.ToWord(args[1]); //Show Word document if (result==0) System.Diagnostics.Process.Start(args[1]); } }upamanyuroyc...
0 Points
10 Posts
Re: Convert PDF to Word
Nov 16, 2012 10:49 AM|LINK
Hi,
Thanks for your reply.
But I am not allowed to use any third party tools even if they are free.
I need the source code to convert a pdf file to a word doc or rtf format.
Thanks,
Upamanyu
upamanyuroyc...
0 Points
10 Posts
Re: Convert PDF to Word
Nov 16, 2012 10:51 AM|LINK
So any good open source complete project will help my cause
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: Convert PDF to Word
Nov 16, 2012 10:54 AM|LINK
Well try this open source project from SourceForge. Hope it helps.
http://xpt.sourceforge.net/techdocs/nix/wp/fmt/fmt09-PdfConvertingCommercial/ar01s03.html
upamanyuroyc...
0 Points
10 Posts
Re: Convert PDF to Word
Nov 16, 2012 12:05 PM|LINK
Thanks again, but where is the source code???
upamanyuroyc...
0 Points
10 Posts
Re: Convert PDF to Word
Nov 16, 2012 12:06 PM|LINK
I do not need any exe or dll , I need the source so that I can modify it as per my need
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: Convert PDF to Word
Nov 16, 2012 12:10 PM|LINK
I think what you're looking for is beyond what this forum can provide. These forums are not for asking for complete code or homework solutions for example. Please do the steps needed based on your requirement above, and if you then find yourself stuck or do not understand a concept, then post to the forums with a specific question about that specific concept. We can explain to you various code concepts and help you to understand how to do something, but ultimately you need to be writing that code.
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: Convert PDF to Word
Nov 16, 2012 12:13 PM|LINK
And, for an explanation why converting PDF to Word is so darned difficult, please see this article: http://blog.nitropdf.com/2009/02/how-pdf-to-word/