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

Free Support Forum - aspose.com

Huge file size when saving pdf as xps

Hi,


we are converting Pdf documents to Xps and and use them as preview in our application.
Now we have the problem that pdf documents with images (mostly from scanners) result in huge xps files.

A 2MB pdf file results in a 30MB xps file for example.

Our code looks like:

var document = new Document(sourceStream);
destinationStream = new MemoryStream();
document.Save(destinationStream, new XpsSaveOptions());


Is there a way to reduce the size of the output files? Image resolution?

Thanks
Wolfgang

Hi,


Thanks for using our products.

Can you please share the source PDF file so that we can test the scenario at our end. We are sorry for this inconvenience.

Hi,


I’ve added a simple scanned Document with 2.5 MB.
The resulting Xps is 20MB (Aspose.Pdf 7.7.0.0).

Thanks,
Wolfgang

Hi Wolfgang,


Thanks for sharing source document. I've managed to reproduce the issue at my end and logged it as PDFNEWNET-35282 in our bug tracking system for further investigation and resolution. You will be notified via this thread as soon as it is resolved.


Sorry for the inconvenience faced.


Best Regards,

Hi there,


Thanks for your patience. We’ve a good news for you, above reported issue has been
resolved. Its fix will be available in coming release of Aspose.Pdf for .NET 8.3,
which is due in start of August,2013. However, you will also notified via this
forum thread as soon as it is published and gets available for download…

Please feel free to contact us for any further assistance.

Best Regards,

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan