- Home
- Forum
- ASP.NET Core - EJ 2
- Pdf to HTML not working with current supported package
Pdf to HTML not working with current supported package
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
Attachment: PDFToHTML_93a3933.rar
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
Thank you for the explanation. Could you kindly share me how to run or compi this repo?
syncfusion/SfXpdf: SfXpdf is a PDF to HTML conversion library based on XPDF (github.com)
Hi Lý Quang Tùng,
We have compiled the XPDF source and integrated it into the provided repository. This repository already contains the compiled source code, which can be directly opened and built in Visual Studio.
For detailed instructions on how to compile XPDF, please refer to the following link:
https://github.com/fluxer/xpdf/blob/master/INSTALL
We utilized this source to compile a C# wrapper, allowing for integration with .NET Framework applications. Please let us know your focus regarding this source compilation.
Please note that this repository contains an older version of the XPDF source. For the latest version, you may build XPDF from the above link.
Regards,
Arumugam M
- 3 Replies
- 2 Participants
-
LQ Lý Quang Tùng
- Oct 4, 2024 08:16 AM UTC
- Oct 16, 2024 11:44 AM UTC