Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1563] PDF in webview causes error, iOS 4, sdk 1.4

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionNeeds more info
Resolution Date2011-04-15T02:56:10.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsdefect, ios, iphone, pdf, webview
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:56:09.000+0000
Updated2017-03-09T23:54:20.000+0000

Description

A customer reported the following issue, when a PDF is viewed in a web view, a UTF8 error occurs.

CODE:::
var infoView = Titanium.UI.createScrollView({

                                            top :               10,
                                            left:               15,
                                            right:              15,
                                            bottom:             -8, 
                                            borderRadius:       appConfig.infoView.borderRadius,
                                            borderColor:        appConfig.infoView.borderColor,
                                            borderWidth:        appConfig.infoView.borderWidth,
                                            backgroundGradient: appConfig.infoView.backgroundGradient,
                                            backgroundColor:    '#FFF',

                                            contentWidth:'auto',
                                            contentHeight:'auto', 
                                            showVerticalScrollIndicator:true,
                                            showHorizontalScrollIndicator:true
                                        });

var webView = Titanium.UI.createWebView({
                                            top :               5,
                                            left:               5,
                                            right:              5,
                                            bottom:             10,  
                                            height:'auto',
                                            url:                "../html/2009_pll_14_akutes_koronarsyndrom.pdf",
                                            backgroundColor:    'transparent',
                                            loading: true
                                        });
infoView.add(webView);                                          
winInfo.add(infoView);

Comments

  1. Blain Hamon 2011-04-15

    Without the pdf, we're unable to recreate. Need a helpdesk ticket or files in order to test.

  2. Lee Morris 2017-03-09

    Closing this ticket as the request for more information has not been provided.

JSON Source