Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi
Good morning...
In my aplication I can read word documentin asp.net,c#. Now How to convert pdf to word document through programmatically.If anybody knows Plz let me know.
Now iam doing R & D ...Please help me
 
I used this code for convertion pdf to word,
 
//open the source PDF document
Document pdfDocument = new Document("D://Sriram/Vendor agreement.pdf");
// save the file into MS document format
pdfDocument.SaveAs2("D://Sriram/Vendor agreement.doc",WdSaveFormat.wdFormatDocument);
 
But Here Word docmunt is converted . Document is empty.
 
Plz help me
Thanks in advance...
Posted 26-Nov-12 17:23pm
24983604
Edited 26-Nov-12 19:36pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
v2
Comments
santhosh19783 at 26-Nov-12 23:37pm
   
Hi Thanks..here only convert word to pdf..I need convert pdf to word...
Krunal R at 26-Nov-12 23:41pm
   
See the second link, answers are given over there.. Good Luck mate.. Don;t forget to accept the solution, if you're satisfied with that..
santhosh19783 at 27-Nov-12 2:30am
   
I used this code for convertion pdf to word,

//open the source PDF document
Document pdfDocument = new Document("D://Sriram/Vendor agreement.pdf");
// save the file into MS document format
pdfDocument.SaveAs2("D://Sriram/Vendor agreement.doc",WdSaveFormat.wdFormatDocument);

But Here Word docmunt is converted . Document is empty.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi,
I think some library is used to convert pdf to word,but am not sure,may be this link is usefull to you.
First dowload sautinsoft.pdffocus.dll from pdffocus.net and add that reference to your application and place the required code.Its working fine.
http://www.sautinsoft.com/products/pdf-focus/index.php[^]
 
http://blog.sautinsoft.com/?cat=14[^]
  Permalink  
v2
Comments
santhosh19783 at 27-Nov-12 0:46am
   
this is third party control..i want to convert pdf to word without 3rd party

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 420
1 CHill60 410
2 Sergey Alexandrovich Kryukov 384
3 PIEBALDconsult 245
4 BillWoodruff 243


Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100