Free Support Forum - aspose.com

SVG to PDF missing text

In the pdf is the text missing when converting from svg.

Code:
using (Stream stream = File.Open(path, FileMode.Open))
{
// .pdf
MemoryStream dstStream = new MemoryStream();
Pdf.LoadOptions loadopt = new Pdf.SvgLoadOptions();
Pdf.Document pdfDoc = new Aspose.Pdf.Document(stream, loadopt);
pdfDoc.Save(dstStream, Pdf.SaveFormat.Pdf);
dstStream.Position = 0;
string outputPath = Path.Combine(outputRootPath, Path.GetFileNameWithoutExtension(path) + “.pdf”);
using (FileStream fs = new FileStream(outputPath, FileMode.CreateNew, FileAccess.Write))
{
dstStream.CopyTo(fs);
}
dstStream.Close();
stream.Position = 0;
}

Image.png (25.1 KB)
TestSvg.zip (1.1 KB)

@marchuber,

We managed to replicate the problem of missing text in our environment. It has been logged under the ticket ID PDFNET-44503 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.