CssClass not defined on SfPdfViewerServer

I would like to set a different background color on 'e-pv-viewer-container' depending on document being loaded. All syncfusion components have CssClass property, except for SfPdfViewerServer.

7 Replies 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team August 18, 2020 01:15 PM UTC

Hi Andrey , 

Thank you for contacting Syncfusion support. 

Currently we do not have support for CssClass for the PF Viewer. We will analyze further on it and update you with more details on August 20, 2020. Meanwhile can you please confirm us whether you want to change the background color as like the below screenshot or else whether you want to change the color for full viewer container 

 

These details will be helpful for us to investigate further and assist you better. 

Regards, 
Akshaya  



MA Mr Andrey Voronov August 18, 2020 01:23 PM UTC

I would like to change background colour of PDF viewer container (RED area on image).


AA Akshaya Arivoli Syncfusion Team August 19, 2020 06:12 AM UTC

Hi Andrey, 

Thank you for your update. 

As mentioned earlier, we will analyze further on it and update you with more details on August 20, 2020 

Regards, 
Akshaya  



MS Mohan Selvaraj Syncfusion Team August 20, 2020 03:59 PM UTC

Hi Andrey ,  

We will expose a new property for CssClass for the PDF Viewer control  and the implementation will be included in our September 9th weekly NuGet release. 


Regards, 
Mohan S


AA Akshaya Arivoli Syncfusion Team October 5, 2020 03:50 PM UTC

Hi Andrey , 
  
Sorry for the inconvenience caused. The fix for the implementation will not be included in our latest release. However we will implement the same and it will be included in our upcoming weekly release on October 13, 2020 
  
Regards, 
Akshaya   



MS Mohan Selvaraj Syncfusion Team October 14, 2020 01:41 PM UTC

Hi Andrey ,  
   
Sorry for the inconvenience caused. The fix for the implementation will not be included in our latest release. However we will implement the same and it will be included in our upcoming weekly release on October 20, 2020  
   
Regards,  
Mohan S  



AA Akshaya Arivoli Syncfusion Team October 20, 2020 04:46 PM UTC

Hi Andrey, 
 
We have implemented your requirement and it was included in our latest weekly release v18.3.0.42. Kindly upgrade to latest version to get the implementation. 
 
<SfPdfViewerServer DocumentPath="@DocumentPath" IsExtractText="true" CssClass="e-pv-custom" Height="500px" Width="1060px">  
</SfPdfViewerServer> 
<style> 
    .e-pv-custom { 
        background-color:aqua; 
    } 
</style> 
 
Packages link:    
     
Client side package    
   
Blazor Client  
Blazor Sever 
Service side package    
ASP.NET Core :    
     
ASP.NET MVC:    
   
   
Regards,   
Akshaya   



Marked as answer
Loader.
Up arrow icon