Creating pdf files in .NET Core project
https://code-maze.com/create-pdf-dotnetcore/
codemazeblog / create-pdf-with-netcore Goto Github PK
View Code? Open in Web Editor NEWCreating pdf files in .NET Core project
Creating pdf files in .NET Core project
Creating pdf files in .NET Core project
https://code-maze.com/create-pdf-dotnetcore/
This solution not create PDF file on Linux Docker container.
I run this sample on Window is OK but on Linux (CenOs7) it do not work
I get these error:
[root@localhost PDF_Generator]# dotnet run
Unhandled Exception: System.DllNotFoundException: Unable to load shared library '/root/Desktop/git/create-pdf-with-netcore/PDF_Generator/PDF_Generator/libwkhtmltox.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: /root/Desktop/git/create-pdf-with-netcore/PDF_Generator/PDF_Generator/libwkhtmltox.dll: invalid ELF header
at System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(String unmanagedDllPath)
at System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(String unmanagedDllPath)
at PDF_Generator.Utility.CustomAssemblyLoadContext.LoadUnmanagedDll(String unmanagedDllName) in /root/Desktop/git/create-pdf-with-netcore/PDF_Generator/PDF_Generator/Utility/CustomAssemblyLoadContext.cs:line 18
at PDF_Generator.Utility.CustomAssemblyLoadContext.LoadUnmanagedLibrary(String absolutePath) in /root/Desktop/git/create-pdf-with-netcore/PDF_Generator/PDF_Generator/Utility/CustomAssemblyLoadContext.cs:line 14
at PDF_Generator.Startup.ConfigureServices(IServiceCollection services) in /root/Desktop/git/create-pdf-with-netcore/PDF_Generator/PDF_Generator/Startup.cs:line 35
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at PDF_Generator.Program.Main(String[] args) in /root/Desktop/git/create-pdf-with-netcore/PDF_Generator/PDF_Generator/Program.cs:line 17
Please help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.