C# windows store app / Generate PDF programmatically using Windows.Graphics.Printing.PrintManager

I want to generate PDF file programmatically using Windows.Graphics.Printing.PrintManager.

I searched in google and find lots of results. but I'm not able to find any solution that's working.

Here are the few links that I've searched: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/b7479337-49c6-416e-a4ce-fb4e66990311/export-xaml-page-to-documentpdf-or-docs-or-xps?forum=wpdevelop https://www.syncfusion.com/forums/114548/convert-xaml-to-pdf