{ "id": "136719", "key": "TIMOB-17752", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-10-05T04:42:49.000+0000", "created": "2014-09-17T12:22:10.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "iphone" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T20:44:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nPDF inside webview has a black border.\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project (classic titanium) \r\n2. Copy the PDF file attached here to Resources.\r\n3. Paste this code into app.ks:\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor:\"#fff\"\r\n});\r\n \r\nvar webview = Ti.UI.createWebView({\r\n url : '/pdf_003.pdf',\r\n scalesPageToFit : true,\r\n top : 10,\r\n left : 0,\r\n backgroundColor : 'transparent',\r\n disableBounce : true,\r\n willHandleTouches : true\r\n}); \r\n \r\nwin.add(webview);\r\nwin.open();\r\n{code}\r\n4. Run it in a device.\r\n\r\nh4. Expected Results\r\nThe PDF showing just fine. \r\n\r\nh4. Actual Results\r\nI get a black border around the webview. Not visible under iOS7 with the same code\r\n\r\nh4. Extra info\r\nhttp://stackoverflow.com/questions/25813551/rendering-pdf-in-uiwebview-ios-8-causes-a-black-border-around-pdf\r\n", "attachment": [ { "id": "51394", "filename": "pdf_003.pdf", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-18T15:38:49.000+0000", "size": 139131, "mimeType": "application/pdf" }, { "id": "51334", "filename": "webview.jpg", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-17T12:22:10.000+0000", "size": 46007, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS8: PDF inside WebView has black border", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 8\r\nSDK 3.4.0.v20140916181713\r\nSimulator iPad Retina\r\n\r\nOther environment:\r\n\r\nCLI version 3.4.0-beta, \r\nTitanium SDK version 3.4.0.v20140905152516 \r\nDevice iPod 5G, iOS 8.0\r\n", "comment": { "comments": [ { "id": "324344", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\n\r\ndoes this happen with any PDF you tried? Do you have a sample PDF that shows the issue? \r\n\r\nThanks! \r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-17T20:40:29.000+0000", "updated": "2014-09-17T20:40:29.000+0000" }, { "id": "324488", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "pdf file", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-18T15:38:49.000+0000", "updated": "2014-09-18T15:38:49.000+0000" }, { "id": "324490", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Added a pdf file (there are around 100 with the same border). The same PDF worked fine on iOS7.\r\n\r\nAlso found this: http://stackoverflow.com/questions/25813551/rendering-pdf-in-uiwebview-ios-8-causes-a-black-border-around-pdf\r\nperhaps this is the same", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-18T15:43:15.000+0000", "updated": "2014-09-18T15:43:15.000+0000" }, { "id": "325824", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "iOS 8.0.2 still has the same behavior ", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-26T12:20:31.000+0000", "updated": "2014-09-26T12:20:31.000+0000" }, { "id": "339297", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Still happens in Ti 3.5.0", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-15T20:12:46.000+0000", "updated": "2015-01-15T20:12:46.000+0000" }, { "id": "341380", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Solution might be here:\r\nhttp://technopote.com/how-to-remove-black-border-from-pdfuiwebview-in-ios-8/\r\n\r\nI've tried to add this to the TiUIWebview.m file but I wasn't able to compile it (since I don't know any Xcode :) )\r\n{noformat}\r\nPluginLoading: Required plug-in compatibility UUID .... for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs\r\n{noformat}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-30T10:27:05.000+0000", "updated": "2015-01-30T10:27:40.000+0000" }, { "id": "365648", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "can be closed!\r\n\r\niOS9 and Ti SDK 5.0.2.GA are not showing a block border", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-02T11:16:14.000+0000", "updated": "2015-10-02T11:16:14.000+0000" }, { "id": "365755", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks for informing us.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-05T04:42:27.000+0000", "updated": "2015-10-05T04:42:27.000+0000" }, { "id": "415929", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T20:44:57.000+0000", "updated": "2017-03-27T20:44:57.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }