C
C#2y ago
PontiacGTX

❔ problem trying to embed image sources with itextsharp converting html element to pdf

this code is showing that I am converting HTML TO pdf but only is able to embed the image source from the qr path which is an absolute path only located in a different folder but the other images arent showing up code in comments below
4 Replies
PontiacGTX
PontiacGTXOP2y ago
html to pdf method
PontiacGTX
PontiacGTXOP2y ago
pdf body
PontiacGTX
PontiacGTXOP2y ago
with absolute path to true and the absolute path for the images public string ObtenerFondoCertificadoCaraA1() => $"{_host.WebRootPath}{System.IO.Path.DirectorySeparatorChar}images{System.IO.Path.DirectorySeparatorChar}certificados{System.IO.Path.DirectorySeparatorChar}cara a-01.png"; relative method just crops the route to the path /images/... but itextsharp only takes absolute route
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server