2

How can I open a pdf file in Adobe Acrobat Reader using swift (or iBook)?

I have the path of the pdf file in my application: /var/mobile/Containers/Data/Application/86AFFF55-694F-4D74-96BF-8F36C79E303F/Documents/file.pdf

What I am currently doing is:

let url = NSURL(string: "com.adobe.Adobe-Reader://"+path)
if (UIApplication.sharedApplication().canOpenURL(url!)) {
      UIApplication.sharedApplication().openURL(url!)
}

This opens the Adobe Acrobat Reader program, but does not load the pdf file.

renea
  • 21
  • 1

0 Answers0