A quick way to open a PDF…

PDF documents can be tricky to view. Different screen sizes, browsers and versions of the OS make showing a resizable, scrollable PDF within your app tricky.

Here’s a quick way around this:

  open("http://guu-izakaya.com/docs/2013.12_sakabar_menu.pdf")

The open function creates a new browser window which displays the pdf document. Once you are done viewing the PDF, you will need to use the OS to return to your app.

This method can also be used to open any document a browser can open, including web sites and images.