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

SfPdfViewerControl.ViewMode FitWidth Behaviour

The UWP app I am working on integrates SfPdfViewerControl to display the PDF document to the user. Due to the size of the PDF and the display dimensions of the app, the FitWidth mode has been set for the ViewMode. However, when resizing the PDF to fit the width of the view, the PDF loaded and shrink to fit the viewer, which appears to be "flashing" on the view. Is it possible to modify the behaviour of SfPdfViewerControl to resize and attach the PDF to SfPdfViewerControl, once the view (a customised dialog) is loaded before rendering it on screen, so that the PDF appears along the dialog without "flashing"?

6 Replies

GR Gayathri Ramalingam Syncfusion Team September 9, 2019 01:43 PM UTC

Hi Samuel, 
 
Greeting from Syncfusion. 
 
Query 
Details 
The UWP app I am working on integrates SfPdfViewerControl to display the PDF document to the user. Due to the size of the PDF and the display dimensions of the app, the FitWidth mode has been set for the ViewMode. However, when resizing the PDF to fit the width of the view, the PDF loaded and shrink to fit the viewer, which appears to be "flashing" on the view. 
Based on your update, we assume that you have been facing issue “The PDF document is loaded again and shrink to fit the PDF Viewer when performing zoom-in to the PDF and then resizing the application window”. We were able to reproduce this issue in our side and we suspect this to be a defect. We have forwarded this issue to our development team for further analysis and we will update further details by 11-September-2019. 
 
If our understanding is different from your requirement, could you please explain briefly about your requirement? It will be useful for us to investigate further on this and assist you with the better solution at the earliest.      
 
 
Is it possible to modify the behaviour of SfPdfViewerControl to resize and attach the PDF to SfPdfViewerControl, once the view (a customised dialog) is loaded before rendering it on screen, so that the PDF appears along the dialog without "flashing"? 
We could not proceed further with the details provided in the incident. Could you please explain briefly about your requirement? So that it will be easy for us to investigate further on the requirement and assist you with the better solution at the earliest.   
 
 
 
 
With Regards, 
Gayathri R 
 



SC Samuel Cheah September 10, 2019 01:03 AM UTC

Hi Gayathri,

Thank your for your prompt response. At the moment, the "flashing" when resizing the PDF document is the only problem that I have. The second request is negligible as the user is ok with the PDF viewer on our app.


Regards,
Samuel


GR Gayathri Ramalingam Syncfusion Team September 10, 2019 05:36 AM UTC

Hi Samuel, 
 
Thank you for your update. 
 
As we mentioned earlier, we will provide the validation details for the issue “The PDF document is loaded again and shrink to fit the PDF Viewer when performing zoom-in to the PDF and then resizing the application window” on 11-September-2019. 
 
With Regards, 
Gayathri R 
 



JP Jhansi Priya Ramesh Syncfusion Team September 11, 2019 01:17 PM UTC

Hi Samuel, 

We have confirmed that the issue “The PDF document is loaded again and shrink to fit the PDF Viewer when performing zoom-in to the PDF and then resizing the application window” is defect and logged defect report for this issue. The patch for this issue will be delivered on 25-September-2019. 
 
 
Regards, 
Jhansi  



GR Gayathri Ramalingam Syncfusion Team September 25, 2019 01:52 PM UTC

Hi Samuel, 
 
Sorry for the inconvenience caused,     
 
We haven’t resolved the issue of “The PDF document is loaded again and shrink to fit the PDF Viewer when performing zoom-in to the PDF and then resizing the application window” due to its complexity. Currently we are working in this with high priority, we will update the patch on 03rd October 2019 without any further delay.     
 
With Regards, 
Gayathri R 
 



AV Ashokkumar Viswanathan Syncfusion Team October 3, 2019 01:38 PM UTC

Hi Samuel,  
  
Thank you for the patience,    
  
The issue with " The PDF document is loaded again and shrink to fit the PDF Viewer when performing zoom-in to the PDF and then resizing the application window” has been fixed and the custom NuGet for the same can be downloaded from the following link     
  
  
Disclaimer
Please note that we have created this NuGet for version 17.2.0.46 specifically to resolve the following issue(s) reported in this/the Forum.
147381  
    
This fix will be included in our 2019 Vol 3 Service pack release which will be available in November 2019. 
 
Regards, 
Ashokkumar Viswanathan

 


Loader.
Live Chat Icon For mobile
Up arrow icon