I want to create a PDF file using C# for UWP, but the iTextSharp doesn't work for UWP, and I can't find any other 3rd party library that could create PDF files for UWP. Any suggestions?
Try Syncfusion, they have library for PDF creation, they even have a PDF Viewer control for UWP.
http://www.syncfusion.com/products/uwp
There is also XFINIUM.PDF, it supports UWP.
http://xfiniumpdf.com/xfinium-pdf-crossplatform/xfinium-pdf-overview.html
Disclaimer: I work for the company that develops this product.
you have to use FileSavePicker();
to save the PDF document to disk once you saved in to the memory stream.
PdfDocument document=new PdfDocument();
PdfPage page=document.Pages.Add();
document.Save(stream);
document.Close(true);
Note: these API's from syncfusion PDF Library.
Disclaimer: I work for syncfusion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With