0

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

I'm looking to do Microsoft Print to PDF programmatically without opening below dialog.

enter image description here

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: How to Silent print from an UWP Application 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

Saadi
  • 2,211
  • 4
  • 21
  • 50

1 Answers1

0

The dialog cannot be averted. The solution is to convert the XAML to PDF yourself.

See Converting XAML to PDF in an UWP app

zax
  • 844
  • 8
  • 14