Generate PDF file with css styleSankara Krishnan Venugopal8yAsked May 23, 2018, 11:38 PM EDT5 answersShareLinkedInXCopy linkSaveHi, Which PDF tool can convert from html to string with CSS STYLE? Thanks.
Generate PDF file with css styleSankara Krishnan Venugopal8yAsked May 23, 2018, 11:38 PM EDT5 answersShareLinkedInXCopy linkSaveHi, Which PDF tool can convert from html to string with CSS STYLE? Thanks.
Rajkiran SwainRank #165 · 14.4K reputation8y agoPosted May 23, 2018, 11:59 PM EDT+2https://stackoverflow.com/questions/415535/maintain-css-styling-when-converting-html-to-pdf-in-asp-net+2
Rahul PrasadRank #2,557 · 546 reputation8y agoPosted May 24, 2018, 12:00 AM EDT+2try Spire.PDF https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-with-New-Plugin.html +2
Sankara Krishnan VenugopalRank #833 · 2.7K reputation8y agoPosted May 27, 2018, 6:32 AM EDT+1Thank you both. Do we have any free Dll for this? Thanks in advance.+1
MRMarvin ReidRank #1,963 · 746 reputation5y agoPosted Oct 6, 2021, 1:30 PM EDT+1You can try using the DocumentConverter from the LEADTOOLS SDK to take the HTML data comprised within a HTML file and convert it to a PDF file. using (DocumentConverter documentConverter = new DocumentConverter()) { var inFile = @"C:\Input\input.html"); var outFile = @"C:\Output\output.pdf"); var jobData = DocumentConverterJobs.CreateJobData(inFile, outFile, DocumentFormat.Pdf); jobData.JobName = "conversion job"; 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/v22/tutorials/dotnet-winforms-convert-files-with-the-document-converter.html https://www.leadtools.com/help/sdk/v22/dh/doxc/documentconverter.html+1Srinivasan RamamoorthiRank #877 · 2.5K reputation5y agoPosted Oct 6, 2021, 9:17 PM EDT+1Check this link too https://www.oxygenxml.com/events/2017/DITA_OT_Day/Using_CSS_to_style_the_PDF_output.pdf +1Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Srinivasan RamamoorthiRank #877 · 2.5K reputation5y agoPosted Oct 6, 2021, 9:17 PM EDT+1Check this link too https://www.oxygenxml.com/events/2017/DITA_OT_Day/Using_CSS_to_style_the_PDF_output.pdf +1
Rajkiran SwainRank #165 · 14.4K reputationPosted May 23, 2018, 11:59 PM EDT
Rahul PrasadRank #2,557 · 546 reputationPosted May 24, 2018, 12:00 AM EDT
Sankara Krishnan VenugopalRank #833 · 2.7K reputationPosted May 27, 2018, 6:32 AM EDT
Marvin ReidRank #1,963 · 746 reputationPosted Oct 6, 2021, 1:30 PM EDT
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Oct 6, 2021, 9:17 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts