Comments (18)
For those hosting on linux (and needing to show client something), I recommend checking out gotenberg which you can run alongside your app in a container and generate your PDFs for now. I think the fine dude maintaining this repo is dealing with IRL stuff. I'm sure he'll sort it out soon.
from wkhtmltopdf.netcore-deprecated.
Hi guys, as @PeterN says there seems to be a problem with .net5, from what i have seen it will be fixed in net 5.0.4, in a few days....meanwhile i have implemented an dirty and above all temporary solution https://www.nuget.org/packages/Wkhtmltopdf.NetCore/5.0.2-preview
I would recommend that only implement this version if you really really really need it.
The final version will have some new features too.
The problem in .net5 resides in the stdin and stdout only in linux, thats why in the linux part of the tool uses files and thats why i wouldnt recomend it....writing and reading files running inside a container, lets say is not optimal.
from wkhtmltopdf.netcore-deprecated.
Same Issue Here: CentOS 7, netcore 5, no docker
from wkhtmltopdf.netcore-deprecated.
Any updates on this?
Facing the same issue.
from wkhtmltopdf.netcore-deprecated.
wkhtmltopdf just calls QPrinter.setOutputFilename("/dev/stdout"), so it's possible the underlying issue is deep within QPrinter/QFile and not wkhtmltopdf.
from wkhtmltopdf.netcore-deprecated.
Hi, sorry for the delay, it's been a rough time for me, i will take a look into this asap
from wkhtmltopdf.netcore-deprecated.
Hi, sorry for the delay, it's been a rough time for me, i will take a look into this asap
It's ok, take care of yourself.
from wkhtmltopdf.netcore-deprecated.
+1
Currently using Gotenburg until this is resolved :(
from wkhtmltopdf.netcore-deprecated.
Fortunately, looks like this was considered enough of a Framework issue for it to be fixed upstream:
from wkhtmltopdf.netcore-deprecated.
So It looks like there is not a Nuget version of this for .Net 5. If using .Net 5 on Windows is the only option to Fork and build it yourself?
from wkhtmltopdf.netcore-deprecated.
So are there any solutions for this?
from wkhtmltopdf.netcore-deprecated.
Yes i got it working via gotenberg.
from wkhtmltopdf.netcore-deprecated.
I can confirm that 5.0.2-preview works on ubuntu 20.04 with .NET 5.0.3.
Maybe it's not working the optimal way, but at least it works, which is better than nothing :)
Thanks!
from wkhtmltopdf.netcore-deprecated.
@fpanaccia Thanks for the update!
I'm probably going to wait for a proper release, learnt my lesson long ago from using preview builds... π
from wkhtmltopdf.netcore-deprecated.
install Install-Package Rotativa.AspNetCore -Version 1.2.0-beta
set Rotativa environment variable to
RotativaConfiguration.Setup(env.WebRootPath, "/usr/bin/");
If you are on Ubuntu 20.10 or 20.04 install wkhtmlpdf.
sudo apt install wkhtmlpdf
This works for Dot Net Core 3.1 or 5.0 I have tested both.
from wkhtmltopdf.netcore-deprecated.
Any news on this? π₯Ίπ
from wkhtmltopdf.netcore-deprecated.
Upgrading to latest docker images 5.0.202 fixed this for myself.
from wkhtmltopdf.netcore-deprecated.
Because this is issue still open, I'll note that (my 2 cents) it should be closed with the statement that the problem is no longer present (for me) with 5.0.403--but as noted by @michael-nee maybe as early as 5.0.202 or before that.
Yesterday I spent several hours of my life that I won't get back fighting a problem that required nothing more than a more recent .NET release.
from wkhtmltopdf.netcore-deprecated.
Related Issues (20)
- Issue when trying to access wkhtmltopdf.exe HOT 1
- GetPdfViewInHtml generate "Razor.RuntimeCompilation.CompilationFailedException" error CS1061 on Centos 8 HOT 1
- Error running under Linux HOT 4
- Injecting dependencies using scope HOT 2
- Error in Linux HOT 2
- Redirect stdin/stdou on linux container
- Missing information on Context in Razor
- Background Image DPI
- header-html using MVC view is not working HOT 1
- 'InvalidOperationException' error when using services.Add Wkhtmltopdf() in ASP.NET Razor project HOT 1
- Not loading Css/Js from my Razor view HOT 1
- Using header with string HTML HOT 1
- ALM Character Shows Near Minus Numbers In Arabic language
- .NET 6 HOT 3
- Footer issue and documentation on using 'default params' HOT 1
- File not found exception on Linux
- Error on run Docker HOT 2
- .NET 6 Docker error on GetPDF() HOT 2
- Font issue
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-deprecated.