PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Oct 23, 2020 2:51 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jul 26, 2020 7:39 am 
Offline

Joined: Sun Apr 26, 2020 4:43 pm
Posts: 2
I am trying to display an image in my PDF using the code below:

XImage image = XImage.FromFile(fileName);
Gfx.DrawImage(image, 0, 0, 250, 140);

The above code works when running the app in editor on Windows but when trying to run the app on IOS I get an error:

Uploading Crash Report
DllNotFoundException: Unable to load DLL 'gdiplus.dll': The specified module could not be found.
at System.Drawing.GDIPlus.GdiplusStartup (System.UInt64& token, System.Drawing.GdiplusStartupInput& input, System.Drawing.GdiplusStartupOutput& output)

Any help on alternative ways to load the image would be appreciated. I tried the Image.FromSteam as well and I get same error about the gdiplus.dll


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 30, 2020 7:51 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 580
Location: CCAA
One implementation of PDFsharp uses GDI+ and works only on platforms that implement GDI+.

The other implementation uses WPF and can be used where GDI+ is not available. I don't know whether WPF is available for IOS.

For inofficial ports of PDFsharp, check the documentation of the ports.

See also:
http://forum.pdfsharp.net/viewtopic.php?f=2&t=832

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 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