If you do not want to deal with having to use the interop, you can take care of this through the use of the DocumentConverter class provided in the LEADTOOLS SDK. You could handle the conversion of this through the use of a service in .NET which will improve on speed. You can try building on the following code:
using (DocumentConverter documentConverter = new DocumentConverter())
{
var inFile = Path.Combine(ImagesPath.Path, @"input.xlsx");
var outFile = Path.Combine(ImagesPath.Path, @"output.pdf");
var format = DocumentFormat.Pdf;
var jobData = DocumentConverterJobs.CreateJobData(inFile, outFile, format);
Piyush PansuriyaRank #454 · 5.5K reputationPosted Jul 9, 2020, 9:24 PM EDT
Marvin ReidRank #1,963 · 746 reputationPosted Mar 24, 2021, 4:24 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts