Make sure the images that were saved by Aspose.Words into Windows temporary Seek to the beginning so it can be read by Aspose.Pdf.Ī pdf = new () MemoryStream xmlStream = new MemoryStream() ĭoc.Save(xmlStream, SaveFormat.AsposePdf) convert the document to a PDF so can return a byte array to the front end merge the letter template with the data
Everything else in the mail merge works fine, it's just the barcode displays the literal text *SIC1* instead of the barcode. I'm using Doc.Save, but as a memory stream so my web service can pass a byte array back to my web page. The part that's not displaying the barcode font is a mail merge that returns the PDF to the browser as a byte array. Perhaps I simplified my example a bit too much.