Coder Social home page Coder Social logo

Comments (7)

ilyahryapko avatar ilyahryapko commented on July 19, 2024

Here's the libraries i've found in container

root@044be08df36e:/app# ldconfig -p | grep 'libwkhtml'
	libwkhtmltox.so.0 (libc6,AArch64) => /usr/local/lib/libwkhtmltox.so.0
	libwkhtmltox.so (libc6,AArch64) => /usr/local/lib/libwkhtmltox.so

https://drive.google.com/file/d/1HYOUanvInomz5giPibU4q2qUaJy8A3II/view?usp=sharing

from wkhtmltopdf-dotnet.

HakanL avatar HakanL commented on July 19, 2024

@ilyahryapko I haven't added support for ARM64, we need the binaries and probably some additional code. I welcome PRs :)

from wkhtmltopdf-dotnet.

ilyahryapko avatar ilyahryapko commented on July 19, 2024

@HakanL I will gladly commit that issue, but honestly speaking I do not have any idea on how to start.
My first thought was the following algorithm

  1. add this libwkhtmltox I've found in my container to your runtimes repo
  2. then somehow manage to edit Haukcode.WkHtmlToPdfDotNet.targets file in order to copy needed libraries via $(Platform) option
  3. add new class WkHtmlModuleLinuxArm64 with corresponding public const string DLLNAME = "runtimes/linux-arm64/native/libwkhtmltox";
  4. edit factory class and add check for process architecture using System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture and call new class mentioned before

Did I get everything correct or am I missing something?
Is there another way to get this 0.12.5 arm64 libwkhtmltox?

from wkhtmltopdf-dotnet.

HakanL avatar HakanL commented on July 19, 2024

That looks correct, I haven't done any development on ARM64, but give it a shot, create a fork and see if you can make it run locally first.

from wkhtmltopdf-dotnet.

HakanL avatar HakanL commented on July 19, 2024

@ilyahryapko Can you see if the latest version fixed this?

from wkhtmltopdf-dotnet.

ilyahryapko avatar ilyahryapko commented on July 19, 2024

@HakanL Sorry for a late reply. Unfortunately do not have M1 anymore so I am unable to test this

from wkhtmltopdf-dotnet.

HakanL avatar HakanL commented on July 19, 2024

Version 1.5.81 which is in NuGet now should support Linux ARM64. I have tested it in Docker on a Macbook Air M1, but more testing would be good.

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.