Hi,
I’m using the PDF stream from DB to generate the SVG which can be embedded into to word document. I’m generating multiple files with the same code which fails for only one pdf stream, the same works if it set the
TextOutputMode = Aspose.Words.Saving.SvgTextOutputMode.UseTargetMachineFonts
the same fails if i use
TextOutputMode = Aspose.Words.Saving.SvgTextOutputMode.UsePlacedGlyphs
Error "Index was outside the bounds of the array."
Stream stream = new MemoryStream(imagebyte);
Aspose.Pdf.Document pdfdoc = new Aspose.Pdf.Document(stream);
MemoryStream stream1 = new MemoryStream();
pdfdoc.Save(stream1, Aspose.Pdf.SaveFormat.DocX);
var options = new Aspose.Words.Saving.SvgSaveOptions()
{
ExportEmbeddedImages = true,
TextOutputMode = Aspose.Words.Saving.SvgTextOutputMode.UseTargetMachineFonts,
ShowPageBorder = false,
UseHighQualityRendering = true,
SaveFormat = SaveFormat.Svg,
MemoryOptimization = true,
FitToViewPort = true
};
MemoryStream stream2 = new MemoryStream();
Aspose.Words.Document document = new Aspose.Words.Document(stream1);
document.Save(stream2, options);
Not sure what could be the issue
using 18.7 tried with 18.5 as well same issue.