Hi,
I try to convert XPS files to PDF and I get this exception:
“System.ArgumentException : The ImagesSource /Documents/1/Resources/Images/PIX_0_0.wdp was not found”.
I noticed that problem occurs when image files are split into pieces (PIX_0_0.wdp is a directory containing [0].piece [1].last.piece files).
It seems the problem occurs only with split files in “Image” folder.
Thank you for your help.
Hi,
Has this been resolved yet, I have the same issue and am on the latest build for .Net4.0
Cheers.
Bryant.
Hi Bryant,
Please find below link to document.
Its simply a Word Template saved as XPS.
https://production.advancec.com.au/public/1417400046.xps
Hi Bryant,
Zip File Attached.
Cheers.
Bryant.
Below is the c# loading the XPS to PDF.
PrintJobIWarningCallback callback = new PrintJobIWarningCallback();
LoadOptions xpsLoadOptions = new XpsLoadOptions();
xpsLoadOptions.WarningHandler = callback;
Document PDFDocument = new Document(tempXPS, xpsLoadOptions);
public class PrintJobIWarningCallback : IWarningCallback
{
public ReturnAction Warning(WarningInfo info)
{
Console.WriteLine(info.WarningMessage);
return ReturnAction.Continue;
}
}
Hi Bryant,
Thank you very much for sharing the source document. While testing the scenario with the latest version of Aspose.Pdf for .NET 9.3.0, we have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-37112 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.
We are sorry for the inconvenience caused.
Best Regards,
The issues you have found earlier (filed as PDFNEWNET-37112) have been fixed in Aspose.Pdf for .NET 11.0.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.