Hi all,
Is there any Javascript library or code available to convert pdf content(with images) to the HTML inline content.
Any help would be appreciated, Thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
parthasarathy BRank #1,731 · 874 reputationPosted Nov 18, 2019, 10:24 PM EST
Dipa MehtaRank #361 · 6.9K reputationPosted Nov 18, 2019, 10:21 PM EST
Dipa MehtaRank #361 · 6.9K reputationPosted Nov 18, 2019, 11:01 PM EST
Marvin ReidRank #1,963 · 746 reputationPosted Oct 4, 2022, 2:27 PM EDT
You can convert from PDF to HTML using a backend service to handle the conversion. With this, you can leverage the DocumentConverter to get the HTML content. Here is an example:
using (DocumentConverter documentConverter = new DocumentConverter()) { var input = @"C:\Inputfiles\input.pdf"); var output = @"C:\Outputfiles\output.html"); var jobData = DocumentConverterJobs.CreateJobData(input, output, DocumentFormat.Html); jobData.JobName = "HTML Convert"; var documentWriter = new DocumentWriter(); documentConverter.SetDocumentWriterInstance(documentWriter); var renderingEngine = new AnnWinFormsRenderingEngine(); documentConverter.SetAnnRenderingEngineInstance(renderingEngine); var job = documentConverter.Jobs.CreateJob(jobData); documentConverter.Jobs.RunJob(job); }https://www.leadtools.com/help/sdk/tutorials/dotnet-core-convert-files-with-the-document-converter.html
https://www.leadtools.com/help/sdk/tutorials/dotnet-core-configure-and-run-the-document-service.html