Where do we get the required assemblies? They are not available via NuGet.
Hi Anthony Griggs,
We did not include the assemblies (Syncfusion.PdfToHtmlConverter.OPX.dll and Syncfusion.PdfToHtmlWrapper.dll) for PDF to HTML conversion in nuget.org. We have created a sample for converting PDF to HTML file using PdfToHtmlConverter, HTML file is generated properly. We have attached the sample with assemblies and output document for your reference, please try the sample on your end and let us know the result.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfToHtmlOPX-2033150245
Document: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Output-807771905
Please
find the below documentation details,
https://www.syncfusion.com/products/opx/xpdf
Please find the assemblies (Syncfusion.PdfToHtmlConverter.OPX.dll and Syncfusion.PdfToHtmlWrapper.dll) download link from below,
https://www.syncfusion.com/downloads/support/directtrac/general/ze/Assemblies-1533584496
Kindly try with the above assemblies and let us if you need any further assistance on this.
Regards,
Gowthamraj K
Steps to turn a PDF into a web page.
Greetings,
Peter
Thanks for providing your suggestions.
https://www.syncfusion.com/forums/155252/do-you-have-any-api-to-convert-pdf-to-html?reply=SfEnYJ
I try down the sample and run. But the dependency have been outdate, I cannot restore 2 package is Syncfusion.Compress.Base and Syncfusion.Pdf.Base.
I try to create new project install Syncfusion.Pdf.Net.Core package then reference 2 assembly file from sample but still not working. The error I received is:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Syncfusion.PdfToHtmlConverter.OPX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Syncfusion.PdfToHtmlConverter.OPX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at Program.<Main>$(String[] args)
Did anyone have any idea why? I suspect that in the dll have reference to old version unsupported package
Hi Lý Quang Tùng,
Thank you for reaching out to Syncfusion support
We have checked your issue on our end. Upon further analysis, The package Syncfusion.PdfToHtmlConverter.OPX is a base package and you are trying to add Syncfusion.Pdf.Net.Core package it seems, which is a core package. So the conversion is failed. Currently, we don't have support to perform PDF to HTML conversion in .NET Core application. We have support PDF to HTML conversion only in the. Net framework.
We kindly request you to create .NET Framework application and perform PDF to HTML conversion. You can get the below assemblies in the following link
Syncfusion.PdfToHtmlConverter.OPX.
Syncfusion.PdfToHtmlWrapper.
http://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfToHtmlOPX1940268788
Additionally, please refer the below documentation to perform PDF to HTML conversion
https://support.syncfusion.com/kb/article/12389/how-to-convert-pdf-to-html-using-c?isInternalRefresh=False
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