-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling document.Save() in UWP solution causes UnauthorizedAccessException #6
Comments
Are you including the projects as source or using pre-built dlls? Do you have file/folder permissions? Specifically in UWP you need to use either the default app directory, specify library folders to require access to in your manifest, or get a file/folder permission via a file/folder picker (you can then save permissions for future executions). This means you can't just pass a string file name as most examples seem to show. In case it is useful I have a small excerpt of how I save my migradoc documents (I'm also new). This assumes you already saved permissions for a custom folder. If you aren't using migradoc, and just pdfsharp you likely need the same arguments anyway.
|
Since this is a general problem I'm closing the issue ;) |
I am new to UWP development and might be implementing it incorrectly but when I call document.save I seem to get an unauthorized access exception every time. I have not had time to look at the library code in detail yet.
Thank you for your efforts in rewriting the PdfSharp library!
The text was updated successfully, but these errors were encountered: