using (var doc = new PDFDoc())
{
var converter = new HTML2PDF();
converter.InsertFromHtmlString(htmlTemplate);
HTML2PDF.SetModulePath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Constants.Api.Properties.AppData, Constants.Api.Properties.Dependencies));
if (!converter.Convert(doc)) return null;
doc.Save(fileFullPath, SDFDoc.SaveOptions.e_linearized); // Can we avoid this step and return an byte[] or stream
}