cr3ature / htmltopdfconverter Goto Github PK
View Code? Open in Web Editor NEWAbstraction library using the DinkToPdf wrapper and lbhtmltopdf libraries
License: MIT License
Abstraction library using the DinkToPdf wrapper and lbhtmltopdf libraries
License: MIT License
It works as intended on a local machine, but on a web app (win-X86) it breaks the start of the application.
This was tested within a .NET 5 framework Blazor WebAssembly APP with a .NET Core server host.
Error message:
HTTP Error 500.30 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Most likely causes:
Things you can try:
Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
Hi, i'm trying to use your nuget package. I've installed the two packages: HtmlToPdfConverter and HtmlToPdfConverter.Core. I'm running on .netcore 2.2.
Added the services.AddHtmlToPdfConverterService();
However, when i try to run, it cant find the libs:
An error occurred while starting the application.
DllNotFoundException: Unable to load DLL 'C:\GIT\promag\src\ProMag\TJPA.ProMag.UI.Site\bin\Debug\netcoreapp2.2\NativeLibs\X64\libwkhtmltox.dll' or one of its dependencies: Não foi possível encontrar o módulo especificado. (Exception from HRESULT: 0x8007007E)
System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)
DllNotFoundException: Unable to load DLL 'C:\GIT\promag\src\ProMag\TJPA.ProMag.UI.Site\bin\Debug\netcoreapp2.2\NativeLibs\X64\libwkhtmltox.dll' or one of its dependencies: Não foi possível encontrar o módulo especificado. (Exception from HRESULT: 0x8007007E)
System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(string unmanagedDllPath)
System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(string unmanagedDllPath)
HtmlToPdfConverter.Abstractions.Configuration.ServiceCollectionExtenstion.AddHtmlToPdfConverterService(IServiceCollection services)
TJPA.ProMag.UI.Site.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
services.AddHtmlToPdfConverterService();
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
Inside my Solution, Visual Studio have added this:
My goal is to run it on Linux with OpenShift platform, creating a docker image from source.
I'm supposed to copy the libwkhtmltox manually to my web project folder? Is there some configuration missing?
Thanks in advance
Is it possible to switch to Haukcode.WkHtmlToPdfDotNet instead of DinkPdf? The DinkPdf project itself seems dead, and WkHtmlToPdfDotNet is a fork of DinkPdf that still gets updated.
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.