Hi support,
Basically this is my code to convert from txt file to pdf. After the conversion I got weird square symbols. Please also see attachment. Thanks!
Stream txtStream = new StreamReader(Server.MapPath("~/uploads/") + checkName, Encoding.UTF8).BaseStream;
document.LoadFromStream(txtStream, Spire.Doc.FileFormat.Auto);
ToPdfParameterList tpl = new ToPdfParameterList
{
UsePSCoversion = true
};
document.SaveToFile(Server.MapPath("~/uploads/") + checkName + ".pdf", tpl);
str.Add(checkName + ".pdf");