PdfLoadedDocument ldoc = new PdfLoadedDocument(txtImageFile.Text);
//Initializing PdfToHtmlConverter PdfToHtmlConverter converter = new PdfToHtmlConverter(); //Initializing and applying settings PdfToHtmlConverterSettings setting = new PdfToHtmlConverterSettings(); setting.IsFrame = false; setting.AbsolutePositioning = false; converter.Settings = setting; //Loading the input PDF document. PdfLoadedDocument ldoc = new PdfLoadedDocument(txtImageFile.Text); //Converting PDF to HTML converter.Convert(inputPath, outputPath, ldoc.Pages.Count); ldoc.Close(true);
|
//Load the PDF document
FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream); |
Hi, I've version 20.3.0.47 in 64 bit web application
I need those DLLs but compatible with my version and my architecture
Hi Mohamed Kamal,
We have checked the reported issue on our end. Upon further analysis, we were unable to replicate the reported issue and the PDF to HTML conversion is working as expected with the provided version on our end. Our Syncfusion .NET PDF library supports conversion of PDF documents to HTML with the help of XPDF, an open-source viewer library for PDF documents. We have customized XPDF to enable PDF-to-HTML conversion, and our implementation supports preserving HTML content as flow layout with relative positioning.
Please find the link below to download the following assemblies
Syncfusion.PdfToHtmlConverter.OPX.
Syncfusion.PdfToHtmlWrapper.
http://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfToHtmlOPX1940268788
These assemblies are kept inside the Assemblies folder in the project's location. Please refer to the screenshot below.
However, we have attached the sample and documentation below for your reference
Documentation: How to convert PDF to HTML using C#?
Note: We have only support to perform PDF to HTML conversion in .NET Framework applications. We don't have support for .NET core application
Please try the above solution and let us know the result. Kindly get back to us if you need any further assistance.
Regards,
Arumugam M