Opening PDF file in safari

  • 1
  • Question
  • Updated 9 years ago
  • Answered
i am having issues when the PDF is open file in my app. i cant go back to the main menu or anything i can to close the app then close it agian in task manager .

does anyone know how to open then pdf file in safari? here is the coding ive used:

touch here to see our catalogue
Photo of Adam 'Eggi' Bateman

Adam 'Eggi' Bateman

  • 11 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Adam 'Eggi' Bateman

Adam 'Eggi' Bateman

  • 11 Posts
  • 0 Reply Likes
a href="images/catalogue.pdf">touch here to see our catalogue<> so you can see the coding
Photo of Adam 'Eggi' Bateman

Adam 'Eggi' Bateman

  • 11 Posts
  • 0 Reply Likes
Hi,

IMAGE problem

I am having problems with the homepage.png image on my home when i test it on my computer i can see the image. I have uploaded to phonegap and downloaded onto my iphone but when i launch the app no image is there only a blue box with a "?" in the middle of it. Here is a the code i am using:

bandw logo

PDF Problem

Relates to the same problem with the image. This time i can see the first page of PDF document but cant zoom or scroll through the full PDF file. here is the code i am using:

object type="application/pdf" data="catalogue.pdf" " width="100%" height="90%" /object"

Please Advise.

look forward to your responses.

Adam

This reply was created from a merged topic originally titled
No image and PDF Problem.
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
The issue with the PDF opening in the same web view can be resolved by specifying target="_blank"
Photo of Adam 'Eggi' Bateman

Adam 'Eggi' Bateman

  • 11 Posts
  • 0 Reply Likes
that doesn't work either! :(
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
It seems to be a bug in loading local files, external files seem to work fine. Here is a demo file: http://hardeep.ca/phonegap/index.txt

I have filed the appropriate bug for this issue.

Thank you.