PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jul 13, 2020 10:58 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Process.Start() on IOS
PostPosted: Tue May 05, 2020 8:21 am 
Offline

Joined: Sun Apr 26, 2020 4:43 pm
Posts: 1
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?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group