EPPlus ExcelPackage ByteArray to PDF File
Asked Answered
P

0

7

In our Asp.Net Core API application we load a templated Excelfile using EPPlus. Add in the data from the database and use .GetAsByteArray() to return a generate Excel file.

I now need give the user the ability to download this file as a PDF as well. However, the documentation seems limited on this.

I found the following link here;

PdfRpt.Core from EPPlus

However, this doesn't use the official EPPlus repo.

I am currently using EPPlus v 5.2.0.

Is it possible for me to convert the ExcelPackage to a PDF byte array without saving the file to disk?

Polyphagia answered 5/8, 2020 at 13:52 Comment(3)
I have the same problem now, did you ever found a solution ?Mongolism
It's been a while since @Mongolism asked, so I'll ask so well. Has anyone come up with a solution to this? I've got the same exact problem in front of me.Desalinate
In the end I used Spire.Xls to pass the excel sheet I had generated with EPPlus, write to a memory stream and convert that way.Polyphagia

© 2022 - 2024 — McMap. All rights reserved.