Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How do I Add User Supplied Logo Image to App Generated Document

OnedayOneday GBMember ✭✭✭
edited December 2019 in Xamarin.iOS

Hi All

I have an app that generates pdfs for the user. I have fixed the pdfs. Now, I want the user to be able to supply their own logo.
typically in other frameworks, I would simply ensure the the logo was a standardised name an pick it up using a URL

I now know that PhotoKit might work, but I cannot get the Sample I am studying to go beyond the Code line below. Thanks

var path = (info?[(NSString)@PHImageFileURLKey] as NSUrl).FilePathUrl.Path;

Error message is; Nullreferenceexception : object reference not set to an instance of an object.

Best Answer


  • OnedayOneday GBMember ✭✭✭

    Hi there, I already used RequestImageForAsset to load images into a List .

    But the code above is a great option


Sign In or Register to comment.