Hi,
I am working on a project where we need to convert some pdf files to word documents. I saw this feature in your end user project but not in FullDemo project of your SDK. Kindly guide how to convert a pdf file to word doc.
Rgds
convert to word,excel
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
charuvasudev
- User
- Posts: 16
- Joined: Wed Feb 11, 2009 5:48 am
Re: convert to word,excel
Hi,
I found this code in your forum to convert pdf to word using plugins-
''load plugin
Dim Inst1 As PDFXEdit.PXV_Inst = New PDFXEdit.PXV_Inst()
Inst1.Init(Nothing, Nothing, Nothing, Nothing, Nothing, 0, 0)
Inst1.StartLoadingPlugins()
Inst1.AddPluginFromFile("D:\\ConvertPDF.pvp")
Inst1.FinishLoadingPlugins()
Inst1 = Nothing
''code for conversion
Private Sub ConvertPdfToDoc(strfilepath As Object)
Dim cov As PDFXEdit.IPXV_ExportConverter = Nothing
pdfctrl.OpenDocFromPath(strfilepath)
For i As Integer = 0 To pdfctrl.Inst.ExportConvertersCount - 1
If (pdfctrl.Inst.ExportConverter(i).ID = "conv.exp.office.docx") Then
cov = pdfctrl.Inst.ExportConverter(i)
Dim cab As PDFXEdit.ICab = pdfctrl.Inst.GetFormatConverterParams(False, cov.ID)
Dim Name As PDFXEdit.IString = pdfctrl.Inst.CreateString("D:\12.docx")
pdfctrl.Doc.Save(Name, 0, Nothing, cov, cab)
pdfctrl.Doc.Close()
End If
Next
End Sub
I found this code in your forum to convert pdf to word using plugins-
''load plugin
Dim Inst1 As PDFXEdit.PXV_Inst = New PDFXEdit.PXV_Inst()
Inst1.Init(Nothing, Nothing, Nothing, Nothing, Nothing, 0, 0)
Inst1.StartLoadingPlugins()
Inst1.AddPluginFromFile("D:\\ConvertPDF.pvp")
Inst1.FinishLoadingPlugins()
Inst1 = Nothing
''code for conversion
Private Sub ConvertPdfToDoc(strfilepath As Object)
Dim cov As PDFXEdit.IPXV_ExportConverter = Nothing
pdfctrl.OpenDocFromPath(strfilepath)
For i As Integer = 0 To pdfctrl.Inst.ExportConvertersCount - 1
If (pdfctrl.Inst.ExportConverter(i).ID = "conv.exp.office.docx") Then
cov = pdfctrl.Inst.ExportConverter(i)
Dim cab As PDFXEdit.ICab = pdfctrl.Inst.GetFormatConverterParams(False, cov.ID)
Dim Name As PDFXEdit.IString = pdfctrl.Inst.CreateString("D:\12.docx")
pdfctrl.Doc.Save(Name, 0, Nothing, cov, cab)
pdfctrl.Doc.Close()
End If
Next
End Sub
-
Sean - PDF-XChange
- Site Admin
- Posts: 774
- Joined: Wed Sep 14, 2016 5:42 pm
Re: convert to word,excel
Hi charuvasudev,
I have let the development team know about your query - hopefully they'll be in touch soon.
Kind regards,
I have let the development team know about your query - hopefully they'll be in touch soon.
Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623