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
close icon

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

Hi,

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 ?

Thanks
Fabrice


Attachment: unused_space_a798e599.zip

2 Replies

SS Sathish Sivakumar Syncfusion Team 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. 
 
Regards, 
Sathish 



FF fff 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,

F

Loader.
Live Chat Icon For mobile
Up arrow icon