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)