PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Process.Start() on IOS
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4131
Page 1 of 1

Author:  Qilu [ Tue May 05, 2020 8:21 am ]
Post subject:  Process.Start() on IOS

I'm using PDFsharp and building in unity and exporting to IOS. When building to windows, or MAC I can get the pdf to save and generate. However when trying to build to iOS I seem to be able to save the file but not load/generate it.

//Works on windows
filename = "clientName" + ".pdf";
document.Save(filename);
Process.Start(filename);

//Works on Mac
filename = Path.Combine(Application.persistentDataPath, clientName + ".pdf");
document.Save(filename);
Process.Start(filename);

//Does not work on IOS
filename = Path.Combine(Application.persistentDataPath, clientName + ".pdf");
document.Save(filename);
Process.Start(filename);

//This is the error I get from Xcode console when running on my iPhone

Uploading Crash Report
Win32Exception: Success
at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <00000000000000000000000000000000>:0
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo)

Any ideas on how to load the pdf on IOS?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/