I created an application which can load a pdf document and then converted it into docx file using aspose.dll library. Lastly, it will display the docx file in WebBrowser control in the windows form application.
This is the code snippet for pdf to word docx conversion.
Dim filePath As String = txtPath.Text
' Dim pdfDocx As Aspose.Pdf.Document = New Aspose.Pdf.Document(filePath)
'open pdf document
Dim pdfDocument As Document = New Document(filePath)
' instantiate DocSaveOptions object
Dim saveOptions As DocSaveOptions = New DocSaveOptions()
' specify the output format as DOCX
Try
saveOptions.Format = DocSaveOptions.DocFormat.DocX
' save document in docx format
pdfDocument.Save("output.docx", saveOptions)
MsgBox("sUCCESS")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
The saveoptions succeed but now I want to display it in WebBrowser control. How can I do this? Thanks