Hi Team,
On my Webpage(exportURL), I have my logo element like below
<img alt="ABC.Com" src="https://tools.abc***.com/mytools/data/logo-transparent.png" width="102px" height="19px">
I am downloading using the below code of evoPdf.
using EvoPdf;
using System.Drawing.Imaging;
...
...
private void pdf_from_url(string exportURL, string filename)
{
HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter();
htmlToPdfConverter.LicenseKey = evoKey;
htmlToPdfConverter.PdfDocumentOptions.AutoSizePdfPage = true;
htmlToPdfConverter.PdfDocumentOptions.FitHeight = true;
htmlToPdfConverter.PdfDocumentOptions.FitWidth = true;
htmlToPdfConverter.PdfDocumentOptions.JpegCompressionLevel = 0;
htmlToPdfConverter.ConversionDelay = 1;
byte[] outPdfBuffer = null;
outPdfBuffer = htmlToPdfConverter.ConvertUrl(exportURL);
Response.Clear();
Response.BufferOutput = true;
Response.AddHeader("Content-Type", "application/pdf");
Response.AddHeader("Content-Disposition", String.Format("attachment; filename={1}.pdf; size={0}", outPdfBuffer.Length.ToString(), filename));
Response.BinaryWrite(outPdfBuffer);
Response.End();
}
The logo is displayed in the downloaded pdf file in debug mode and test server. but it is not displaying on the production server.
Kindly do the needful to resolve this.
What I have tried:
Even I have tried with the physical image instead of imgUrl in the IMG tag. still, it is not working.
kindly lemme me if anything is required.