Comments (2)
Hi, you could do something like this
var pdf = await _generatePdf.GetByteArrayViewInHtml(htmlView, data);
var pdfStream = new System.IO.MemoryStream();
pdfStream.Write(pdf, 0, pdf.Length);
pdfStream.Position = 0;
return new FileStreamResult(pdfStream, "application/pdf") { FileDownloadName = "New Name.pdf" };
from wkhtmltopdf.netcore.example-deprecated.
Thank you so much for the quick response, I will try it out and drop feedback here.
from wkhtmltopdf.netcore.example-deprecated.
Related Issues (20)
- Permission Denied Issue For Linux HOT 1
- Unable to resolve service for type 'Wkhtmltopdf.NetCore.IGeneratePdf' HOT 1
- Problem on MacOS HOT 3
- [BUG] GetByteArrayViewInHtml(view, model) not working.
- QPainter::begin(): Returned false Exit with code 1, due to unknown error. .net 5 docker linux HOT 15
- Permission Denied on Mac HOT 1
- /app/{GUID}.pdf file not found exception in Linux Docker Compose on .NET5 HOT 3
- Error in generate header HOT 1
- header-html using MVC view is not working
- Rotativa Container
- Cannot add footer & header in linux docker container HOT 1
- Not working with Areas view HOT 1
- Footer issue and documentation on using 'default params' HOT 1
- Images HOT 1
- How to pass a string argument to wkhtmltopdf? HOT 2
- error when save pdf on linux
- Can't use library with View in dotnet core 3.1 HOT 1
- Doesn't work in linux HOT 4
- How can I add arguments for input fields HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wkhtmltopdf.netcore.example-deprecated.