Suggestion for an additional propertyon SfPdfviewer

Hi Syncfusion Team,

SfPdfViewer is a great control (like others). I have a suggestion which may or may not be in line with your roadmap.

The Control has ItemSource property that works well with Stream source.  However, application users interact with Document rather than the stream as per current design.  So Document is more useful to developers.  There is no bindable property Document on SfPdfviewer control in XAML.  I was wondering if you can add one with a couple of events like PropertyChanged or method OnPropertyChanged.

I am using a custom attached property "Document" and binding it to the Document property of the control that so far works well.

Thank you for great controls and greater help.

HSPR

5 Replies 1 reply marked as answer

SP Satheesh Palanisamy Syncfusion Team October 30, 2020 03:39 PM UTC

Hi Harshad,


 
 
The PDF document can be loaded alternatively by using the ‘SfPdfViewerControl.LoadDocument(PdfLoadedDocument loadeddocument)’ method and the document loaded can be accessed by using the ‘SfPdfViewerControl.LoadedDocument’ property.   
  

kindly find the help documentation in the link below 
 
  
  
Please let us know whether the above APIs will satisfy your requirements. If not kindly elaborate on the requirement and scenarios to analyze more that will be useful to provide a better solution at earliest.  
  
Regards,  
Satheesh Palanisamy. 


Marked as answer

HS HSPR November 1, 2020 04:23 AM UTC

Hi Satheesh,

Thank you for your response.  I am using the APIs you pointed out.  My point was that the LoadedDcument is not available for binding in XAML.  Just want something that we can use to bind LoadedDcument to viewmodel.  But I guess it's not available because it is a readonly property and even reading  ‘SfPdfViewerControl.LoadedDocument’ property gives only a clone of the LoadedDcument, not a reference.

As I said, I am using a custom AttachedProperty to server my needs and is acceptable at least for now.

Thanks.
Harshad



SP Satheesh Palanisamy Syncfusion Team November 2, 2020 01:03 PM UTC

Hi Harshad,

 
  
kindly elaborate on the requirement and if possible, share the code with the how you are using the property and scenarios to analyze more that will be useful to provide a better solution at earliest.   
   
Regards,   
Satheesh Palanisamy.  



HS HSPR November 4, 2020 03:10 AM UTC

Hi Satheesh,

Thanks for your response.  Before I waste your time, let me see if I can do with itemsource stream.  As I said, this was just a suggestion and you can close the case.  Should I find something interesting, I will post here for everyone to comment and leverage, if worth.

Thanks
Harshad





AV Ashokkumar Viswanathan Syncfusion Team November 4, 2020 11:19 AM UTC

Hi Harshad, 
 
Thank you for your update. We will wait to hear from you. 
 
Regards, 
Ashok Kumar Viswanathan. 


Loader.
Up arrow icon