We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XPS to PDF conversion loosing image size

Thread ID:





150977 Jan 27,2020 05:55 AM UTC Feb 12,2020 11:29 PM UTC WPF 4
Tags: PDF
Damien Holley
Asked On January 27, 2020 05:55 AM UTC

I am using the XPS to PDF conversion, the header image looks fine in WPF as well as looking at the xps document seperately. Once the PDF conversion is done it loses it's scaling. and is cropped at the image (scale size) edges.

Any ideas how to fix this?

Sowmiya Loganathan [Syncfusion]
Replied On January 28, 2020 11:55 AM UTC

Hi Damien, 

Thank you for contacting Syncfusion.  

We have tried to reproduce the reported issue “Scaling and cropping issue while converting XPS to PDF”, but we regret to let you know that we were unable to reproduce it. Could you please share us the below details to replicate the issue, it will helpful for us to provide the precise solution on this.  

  • Input XPS file
  • Complete code snippet or sample
  • Product version
  • Environment details like OS, Display scaling and resolution
  • Issue details with screenshot

Sowmiya Loganathan 

Damien Holley
Replied On February 9, 2020 10:55 PM UTC

Hi Sowmiya,
OS: Win10
Display: 2k monitors + 125%
SF Version : 17.2460.0.46

The file views, please note that the image in the pdf file appears like it's being cropped to the total space of the logo in the xaml file:
PDF File