I would like to know how to open and create .pdf document. I am using the following code :
public async void OpenPDFFile()
// StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("test.pdf"); // ( pdf file stored inside the project folder.)
StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
StorageFile pdffile = await local.GetFileAsync("test.pdf");
// Launch the pdf file.
But my app is getting crashed at the point where I am calling async function. Could u pls tell me the correct file path (or the location at which I can save the file.) Am I using the correct API class to open and launch the application. Pls guide me regarding this.