GithubHelp home page GithubHelp logo

Comments (18)

lordplagus02 avatar lordplagus02 commented on June 25, 2024 1

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.

fpanaccia avatar fpanaccia commented on June 25, 2024 1

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.

fjsosa avatar fjsosa commented on June 25, 2024

Same Issue Here: CentOS 7, netcore 5, no docker

from wkhtmltopdf.netcore-deprecated.

yakeer avatar yakeer commented on June 25, 2024

Any updates on this?
Facing the same issue.

from wkhtmltopdf.netcore-deprecated.

PeterN avatar PeterN commented on June 25, 2024

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.

fpanaccia avatar fpanaccia commented on June 25, 2024

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.

michael-nee avatar michael-nee commented on June 25, 2024

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.

lordplagus02 avatar lordplagus02 commented on June 25, 2024

+1
Currently using Gotenburg until this is resolved :(

from wkhtmltopdf.netcore-deprecated.

PeterN avatar PeterN commented on June 25, 2024

Fortunately, looks like this was considered enough of a Framework issue for it to be fixed upstream:

dotnet/runtime#47461

from wkhtmltopdf.netcore-deprecated.

runxc1 avatar runxc1 commented on June 25, 2024

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.

avivCodhen avatar avivCodhen commented on June 25, 2024

So are there any solutions for this?

from wkhtmltopdf.netcore-deprecated.

michael-nee avatar michael-nee commented on June 25, 2024

Yes i got it working via gotenberg.

from wkhtmltopdf.netcore-deprecated.

yakeer avatar yakeer commented on June 25, 2024

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.

lordplagus02 avatar lordplagus02 commented on June 25, 2024

@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.

ne0rrmatrix avatar ne0rrmatrix commented on June 25, 2024

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.

lordplagus02 avatar lordplagus02 commented on June 25, 2024

Any news on this? πŸ₯ΊπŸ™

from wkhtmltopdf.netcore-deprecated.

michael-nee avatar michael-nee commented on June 25, 2024

Upgrading to latest docker images 5.0.202 fixed this for myself.

from wkhtmltopdf.netcore-deprecated.

WellspringCS avatar WellspringCS commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.