We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Letter missing in word after converting to PDF from XPS

I just converted a XPS file to PDF but after converting got some letter in some words are missing in converted PDF.
Here is converted PDF,
Input_Test_Names.pdf (70.6 KB)
Image of my input XPS file is here(as XPS format is not allowed to upload),
Input_Test_Names_xps.jpg (136.9 KB)

Here is my code, I just pass existing XPS file path and new PDF file path as parameter, after converting to PDF some letters is some words are missing.

public class Program
{
static void Main(string[] args)
{
XpsToPdfConverter.Convert(args[0], args[1]);
}
}

public class XpsToPdfConverter
{
public static void Convert(string xpsFilePath, string pdfFilePath)
{
try
{
var assembly = Assembly.GetAssembly(typeof(XpsToPdfConverter));
const string licenseResource = “AsposeTest.Aspose.Pdf.lic”;
using (var stream = assembly.GetManifestResourceStream(licenseResource))
{
var license = new License();
license.SetLicense(stream);
var options = new XpsLoadOptions();
var doc = new Document(xpsFilePath, options);
doc.Save(pdfFilePath);
}
}
catch (Exception exception)
{
Console.Write(exception);
Console.Read();
}
}
}

@dchung

Thank you for contacting support.

Would you please upload the XPS file as a ZIP file so that we may try to reproduce and investigate it in our environment.

Hi @Farhan.Raza, Thanks for your response.
Here is XPS input and PDF output in ZIP file.
XpsToPdf.zip (312.4 KB)

@dchung

Thank you for sharing requested data.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45476 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.