Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

is this command available to open adobe acrobat reader in xamarin ios?

New Here ,
Nov 30, 2018 Nov 30, 2018

Copy link to clipboard

Copied

I need to open acrobat reader in xamarin forms ios project. I tried this code but getting errors. I just need to know is this command correct or not.

var url = new NSUrl($"adobereader:{filePath}");

UIApplication.SharedApplication.OpenUrl(url);

Views

791
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 30, 2018 Nov 30, 2018

Copy link to clipboard

Copied

Someone else posted a similar question but what puzzled me then (and now) is how Reader could possibly read a file inside your app’s Sandbox. I do not see how this could work even in theory. 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 02, 2018 Dec 02, 2018

Copy link to clipboard

Copied

My document is inside the icloud

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

Can the Reader app open the file from iCloud directly?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

I am getting this error when trying to open it from adobe acrobat reader.

Could not initialize an instance of the type 'Foundation.NSUrl': the native 'initWithString:' method returned nil.

It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

Do you mean you are trying to open the iCloud file from within the Acrobat Reader's own app user interface, when you get this error?

Or do you get it when your app attempts to send a URL?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

in my own app error this is. i am using xamarin forms(ios)

This is the code i am using to open file

var url = new NSUrl($"adobereader:{filePath}");

UIApplication.SharedApplication.OpenUrl(url);

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

LATEST

So, can you open this iCloud file from the Acrobat Reader app directly, using the user interface?

This is an important test. Clearly you will not be able to automate what you cannot do in the user interface.

My advice anyway is to use Send To instead.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines