Given a view page, you can use the Virtual Printer in the LEADTOOLS SDK to convert a page to a PDF in a .NET Core app. The Virtual Printer can be used to capture a print job, and then used to save the image to the file. This supports a large variety of other file format which you can try. Here is code that you can use to get started.
LeadPrinter = new Printer(printerName);
LeadPrinter.EmfEvent += new EventHandler(LeadPrinter_EmfEvent);
LeadPrinter.JobEvent += new EventHandler(LeadPrinter_JobEvent);
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 30, 2021, 7:06 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Apr 30, 2021, 6:25 AM EDT
sourav mahajan33 reputationPosted Apr 30, 2021, 6:56 AM EDT
sourav mahajan33 reputationPosted Apr 30, 2021, 7:46 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Apr 30, 2021, 8:29 AM EDT
sourav mahajan33 reputationPosted Apr 30, 2021, 8:47 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted May 1, 2021, 2:26 AM EDT
Marvin ReidRank #1,963 · 746 reputationPosted May 3, 2021, 5:50 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts