Forum Xamarin.iOS

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

Answers

  • OnedayOneday GBMember ✭✭

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

    But the code above is a great option

    Thanks

Sign In or Register to comment.