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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the color of the unused space of PDFDocumentView ?

Thread ID:





123935 May 2,2016 12:50 PM UTC May 19,2016 04:20 PM UTC WPF 2
Tags: PdfViewer
Asked On May 2, 2016 12:50 PM UTC


Please see attached JPG to clarity

I need to change the color of the surface inside the PdfDocumentView control, but around the pdf, when the pdf does not occupy all the space (which appends very frequently, depending on the zoom factor)

I have tried:
  • background
  • borderbrush
  • foreground
  • opacity mask
... without suceess

so what is the correct attribute ?


Attachment: unused_space_a798e599.zip

Sathish Sivakumar [Syncfusion]
Replied On May 3, 2016 12:00 PM UTC

Hi Fabrice, 
Thank you for using Syncfusion Products. 
At present we do not support “Changing the Background, Foreground, Borderbrush and OpacityMask colors for PdfViewerControl/PdfDocumentView in WPF”. We have created a new incident to follow-up with your query.  
Please login to the Syncfusion account to know more details about the incident: 
Kindly let us know if you need further assistance. 

Replied On May 19, 2016 04:20 PM UTC

To help others reading this & wanting to achieve the same

--> sharing from the direct-track support: the correct parameter should indeed be "background" ... but in fact not working (not working in general or in some particular cases is not clear)
Anyway, SF is working on a fix for that to include in the next release
Hope it helps,



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon