Comments (7)
So you're probably missing dependencies to the native htmltopdf library on your Ubuntu 18.04 server. My guess is the libjpeg62 package, but if you install the native dpkg then it will tell you. Obviously this .NET wrapper can't install native dependencies.
from wkhtmltopdf-dotnet.
Maybe it's related to #28 if you're using publish. Is the .so file in any subfolder on your Ubuntu machine?
from wkhtmltopdf-dotnet.
Have you made sure those dependencies are installed?
from wkhtmltopdf-dotnet.
the libraries of each runtime are not exported as they should, it only works on my local machine but on an ubuntu 18.04 server it does not work
from wkhtmltopdf-dotnet.
The libjpeg62 libraries even though they are installed on the server does not work, you have to copy the native libraries in the root of the publication project, you also have to install the libssl package in case you have images in https
from wkhtmltopdf-dotnet.
Those steps are definitely not correct, you don't need to download DLL and DYLIB files (Windows and Mac) to your Linux install. But that being said, you shouldn't have to download any files, we have tested this to work fine in docker, but your docker image definitely has to have libjpeg62 (and possibly other dependencies) installed. You can always try run the example docker project as-is first, which is using .NET 3.1 (2.2 as you have in your example isn't out of support by Microsoft). I'm confused if you're trying to use docker, or directly in Ubuntu, your screenshot shows a dockerfile.
from wkhtmltopdf-dotnet.
I'm not using docker but evidence where I get the dependencies libwkhtmltox.dll libwkhtmltox.dydll, libwkhtmltox.so
In theory the nuget should make my life easier by placing the necessary libraries internally, but curiously these are not attached as they should, because even though I install the nuget and the native libgpg62 library and run the service in Ubuntu 18.06 it does not work. But when placing libwkhtmltox.dll libwkhtmltox.dydll
libwkhtmltox.so in the main project path, it works.
from wkhtmltopdf-dotnet.
Related Issues (20)
- Not reading settings on alpine HOT 2
- HTML tags removed HOT 3
- Reporting a vulnerability HOT 1
- In Linux CentOS 7, there was an error: Unable to load native library. The platform may be missing native dependencies (libjpeg62, etc). Or the current platform is not supported. HOT 3
- Memory overflow HOT 2
- The wkhtmltopdf project that is used, is no longer maintained HOT 3
- Display flex is not working HOT 1
- Unable to load native library - Windows 10/11 HOT 16
- How to directly pass parameters to wkhtmltopdf without using objects HOT 1
- You can only download the pdf once HOT 2
- How can I include CSS like Bootstrap in my HTML so that I can observe the applied styles when generating a PDF? HOT 6
- Unable to load native library on .NET8 HOT 29
- n/a
- GlobalSettings not respected on debian 11 HOT 3
- With Multiple requests fails HOT 15
- Not working on Azure Web App 32 bits HOT 7
- add cover command HOT 2
- PdfTools.GetConversionResult doesn't frees memory HOT 3
- HTML字符串转换为PDF报错System.ExecutionEngineException HOT 1
- 将HTML字符串转换为PDF文件,抛出异常System.ExecutionEngineException(重复,需要删除) HOT 2
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-dotnet.