I am using AbcPdf
and I am getting some difficute to use Alpha/Opacity
style to be
rendered in .AddImageHtml()
method.
This need to be added as stylesheet because I am creating the pdf from my html.
Some images has opacity, but not all, so, I need to put opacity only to images that have opacity as stylesheet.
The AbcPdf
version I am using is 8.1.1.5
SAMPLE CODE
[HttpPost]
[ValidateInput(false)]
public virtual ActionResult GeneratePDF(string pdf)
{
Doc theDoc = new Doc();
theDoc.AddImageHtml(pdf);
theDoc.Rect.Inset(20, 20);
string pathForSaving = Server.MapPath("~/Uploads");
theDoc.Save(Path.Combine(pathForSaving, "htmlimport.pdf"));
theDoc.Clear();
return Json(new { }, "text/html");
}
[UPDATED]
I still have the problem, but I am applying opacity in my image before upload. In other words, my image has been saved with opacity.
Despite applying the opacity, the rendered image don't have opacity.
(I checked my Upload
folder and the saved image has opacity)
What's happening here?
[/UPDATED]
Any help will be appreciated.
Thanks.