UWP Viewer Control - Share Not Working

Product: PDFNet Windows Mobile/UWP

Product Version: 9.4.0

Please give a brief summary of your issue:
Viewer Control - Share Not Working

Please describe your issue and provide steps to reproduce it:
Using the ViewerControl in the app and clicking on “Share” in the 3 dots “More Options” gives rise to the error shown here:-

Please provide a link to a minimal sample where the issue is reproducible:
PDFTron’s own sample can be used to replicate the problem - GitHub - PDFTron/xamarin-forms-sample: This sample shows how to use PDFTron for Xamarin in Xamarin.Forms project via PageRenderer. You can run this sample on Android, iOS and UWP. It shows a simple PDFViewCtrl with annotation functionality.

Hi,

The implementation of the Share feature is intended not to work here. The sample project you are referencing is a simple proof of concept that the UWP SDK also works for Xamarin projects. The project description also mentions: " It shows a simple PDFViewCtrl with annotation functionality as well as a more advanced viewer (iOS and Android only)."

The UWP side of the Xamarin sample does not fully implement the Viewer as there are complete samples already implementing these same features, such as the CompleteReader sample project.

As for implementing the sharing feature, we use the Windows DataTransferManager, more information can be read here. Implementation example can be found in the CompleteReader sample project.