Hello,
I have XPS file with following content:
image.png (5.4 KB)
After converting it to PDF, one of the paths is broken:
image.png (14.4 KB)
Here is my input XPS file:
XPSTEST.7z (73.6 KB)
Code used for conversion:
using System.Diagnostics;
using System.IO;
using Aspose.Pdf;
using AsposeExportTest;
AsposeLicensing.EnsureLicense();
var outputFileName = "result.pdf";
if (File.Exists(outputFileName))
{
File.Delete(outputFileName);
}
using (var xpsStream = File.OpenRead("XPSTEST.xps"))
{
using (var document = new Document(xpsStream, new XpsLoadOptions()))
{
document.Save(outputFileName);
}
}
var psi = new ProcessStartInfo
{
FileName = outputFileName,
UseShellExecute = true,
};
Process.Start(psi);
Used following project configuration, Latest Aspose.PDF 23.12.0
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseWpf>true</UseWpf>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspose.PDF" Version="23.12.0" />
</ItemGroup>
Is that a bug in Aspose.PDF? Can I somehow workaround this?
Best regards,
MR