C
C#14mo 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
PontiacGTX14mo ago
html to pdf method
PontiacGTX
PontiacGTX14mo ago
pdf body
PontiacGTX
PontiacGTX14mo 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
Accord14mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.