Coder Social home page Coder Social logo

Comments (5)

markmcgookin avatar markmcgookin commented on July 19, 2024 1

Could you give me a link to this discussion on MSDN?

It's not much help, but have a read here.

I would recommend docker if you can to give you more control.

from wkhtmltopdf-dotnet.

HakanL avatar HakanL commented on July 19, 2024

Hey Mark, it sounds like this is an issue with the underlying wkhtmltopdf library, the DinkToPdf is just a wrapper around it. I think your best bet is to try the wkhtmltopdf library directly on the affected system to see if you can reproduce it and go from there.

from wkhtmltopdf-dotnet.

MDzyga avatar MDzyga commented on July 19, 2024

I have the same problem and tried to use fonts from google fonts website like here: https://stackoverflow.com/questions/10611828/use-custom-fonts-with-wkhtmltopdf.
Locally it works, but after deploy on Azure App Service doesn't work.

from wkhtmltopdf-dotnet.

markmcgookin avatar markmcgookin commented on July 19, 2024

So I've discussed this with Microsoft over on MSDN and they had asked me to try a few things that I had already tried. None of which worked. It's still unclear whether this is an IIS issue or some web.config setting that we have no control over when deploying to Azure. It's not an issue with dink or wkhtmltopdf, it's an issue with the deployment to azure.

My solution (which Microsoft accepted and marked as the answer) was to quickly dump my webjob into a docker container, where I have full control over the environment... get my code up and running there and working locally. Then I deployed that to a kubernetes cluster in azure (a bit overkill, but apparently the container instance is obsolete and being phased out)... configuring k8s was by far the hardest bit, but I now have it up and running, because of the nature of containered apps I've got a bunch of replicas which will help with performance and I have full control over the fonts etc too. Just don't forget that you will need to add the ".so" library as well as the dll/dylib if you are running on linux.

from wkhtmltopdf-dotnet.

MDzyga avatar MDzyga commented on July 19, 2024

Could you give me a link to this discussion on MSDN?

from wkhtmltopdf-dotnet.

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.