Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7353] iOS: PDF Links are not clickable when loaded in WebView: iOS

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.0.0, Release 1.8.3
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterRonnie Swietek
AssigneeEric Merriman
Created2012-01-24T10:09:38.000+0000
Updated2018-08-02T17:31:48.000+0000

Description

When loading a PDF into a WebView, you cannot click links that are present in the PDF. Whether they be text links or links created in acrobat with the link tool. The WebView is just unresponsive. If you open that same PDF in mobile safari, the links work so it is definitely possible in a WebView. The steps to reproduce: 1) Create a new Ti mobile project and choose for iPhone/iPad. 2) Open app.js and delete all the contents. 3) Paste the following
Titanium.UI.setBackgroundColor('#000');

var win1 = Titanium.UI.createWindow({  
    backgroundColor:'#fff'
});
var wv = Ti.UI.createWebView({
	width:320,
	height:240,
	scalesPageToFit:true
});
win1.add(wv);
wv.url = "http://mv.dop.com/example_slide.pdf";
win1.open();
4) Save and build the project. The WebView will show up in the middle of the device and you are not able to click any of the links. Looks like a bug to me, right? I've made numerous threads on this in the Ti Community and have not been able to find a solution.

Comments

  1. Mauro Parra-Miranda 2012-01-24

    As a workaround, there is a module in the Marketplace that implements this (check Mark's reply): http://developer.appcelerator.com/question/130963/clicking-links-in-a-pdf-in-webview Best, Mauro
  2. Junaid Younus 2012-05-17

    Tested with 2.0.1GA2 on the iOS simulator and on an iPhone 3GS, I'm unable to reproduce this issue. Ticket closed.
  3. Rima Umbrasas 2012-08-10

    Still present on: mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Ipad 5.1

JSON Source