TuesPechkin | NET wrapper for the wkhtmltopdf library | DevOps library
kandi X-RAY | TuesPechkin Summary
kandi X-RAY | TuesPechkin Summary
The wkhtmltox.dll file and any dependencies it might have (for older versions, 0.11.0-) are not included in the TuesPechkin NuGet package; however, you can bring your own copy of the library or download one of the following NuGet packages that contain the library:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TuesPechkin
TuesPechkin Key Features
TuesPechkin Examples and Code Snippets
Community Discussions
Trending Discussions on TuesPechkin
QUESTION
Fair warning: This post is a bit of an essay-sized question... So let me say my thanks beforehand to whoever goes through it and tries to answer it.
Context:
I have been trying the only 2 free-commercial-use open-source html to pdf converting libraries I could find.
PDFSharp unfortunately outputs a pdf with a completely messy style layout that doesn't respect the formatting of the input HTML and sometimes doesn't output images properly. (How it should've look vs how it looks with PDF#)
TuesPechkin (wkhtmltopdf c# wrapper library) on the other hand does it all right except for only outputting these odd "image containers" (a hollow outline of where the image supposedly should be).
I declare the IConverter object upon calling my class' constructor like so:
converter = new ThreadSafeConverter( new RemotingToolset( new Win64EmbeddedDeployment( new TempFolderDeployment())));
Then I have the following method where you can find the GlobalSettings and ObjectSettings I'm currently using for the conversion.
ANSWER
Answered 2021-Oct-11 at 12:35I tested your HTML using NuGet package itext7.pdfhtml
and the images didn't show either. However after some investigation, I discovered an issue with the value in the src
property.
In the src
property value you have data:image/png;Base64
. It should be data:image/png;base64
- notice the lower-case b
for base64
.
After changing Base64
to base64
it seems to work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TuesPechkin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page