How to convert doc/pdf into html


(Rettaikulamram) #1

Hi,

I have to convert doc/pdf file to html file when doc/pdf file is uploaded in webpage.

how to do this.

Thanks


(Sitepodkluch) #2

you could use UNO API from OpenOffice

or any other external program like doc2html etc …


(Rettaikulamram) #3

Hi,

Thanks for reply


(Rettaikulamram) #4

But how to integrate it with a web page


(Abigail Klinton) #5

The following code example demonstrates how to convert PDF files into html using above method.

using RasterEdge.Imaging.Basic;

using RasterEdge.Imaging.Basic.Core;

using RasterEdge.Imaging.Basic.Codec;

using RasterEdge.Imaging.PDF;

using System.Diagnostics;

namespace RE__Test

{

public partial class Form1 : Form


{


    public Form1()


    {


        InitializeComponent();


    }





    private void button1_Click(object sender, EventArgs e)


    {





        RasterEdgeImaging PDF = new RasterEdgeImaging();


        public void ConvertPdftoHtml();


        {


        PDFInputFile = (@"C:/1.pdf");


        PDFPageNumber = "1";


        HTMLOutputFile = OutputFormat.html;


        }


        PDF.Save("OutputFormat.html", SaveFormat.Html);


    }


}

}