This function Opens a Pdf file and then Saves the content as an xps file:
static void f2(string iFile, string oFile)
{
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(iFile);
Aspose.Pdf.XpsSaveOptions xo = new Aspose.Pdf.XpsSaveOptions();
pdf.Save(oFile, xo);
}
When I call this function on the uploaded out.pdf file, the xps file produced has a first page which is entirely black. The pdf content simply contains empty spreadsheet boxes - nothing fancy at all.
The problem is that the Path is being Filled rather than Stroked. If you manually changed Path.Fill to Path.Stroke then the page is no longer solid black.
We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-46334 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.
As issue was logged under free support model, it has low priority and is pending for resolution due to other issues in the queue. We will surely let you know as soon as we have some definite updates regarding availability of its fix. Please spare us some time.