Problem Description
PDF inside webview has a black border.
Steps to reproduce
1. Create a new mobile project (classic titanium)
2. Copy the PDF file attached here to Resources.
3. Paste this code into app.ks:
var win = Titanium.UI.createWindow({
backgroundColor:"#fff"
});
var webview = Ti.UI.createWebView({
url : '/pdf_003.pdf',
scalesPageToFit : true,
top : 10,
left : 0,
backgroundColor : 'transparent',
disableBounce : true,
willHandleTouches : true
});
win.add(webview);
win.open();
4. Run it in a device.
Expected Results
The PDF showing just fine.
Actual Results
I get a black border around the webview. Not visible under iOS7 with the same code
Extra info
http://stackoverflow.com/questions/25813551/rendering-pdf-in-uiwebview-ios-8-causes-a-black-border-around-pdf
Hello, does this happen with any PDF you tried? Do you have a sample PDF that shows the issue? Thanks!
pdf file
Added a pdf file (there are around 100 with the same border). The same PDF worked fine on iOS7. Also found this: http://stackoverflow.com/questions/25813551/rendering-pdf-in-uiwebview-ios-8-causes-a-black-border-around-pdf perhaps this is the same
iOS 8.0.2 still has the same behavior
Still happens in Ti 3.5.0
Solution might be here: http://technopote.com/how-to-remove-black-border-from-pdfuiwebview-in-ios-8/ I'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 :) ) {noformat} PluginLoading: Required plug-in compatibility UUID .... for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs {noformat}
can be closed! iOS9 and Ti SDK 5.0.2.GA are not showing a block border
Thanks for informing us.
Closing ticket with reference to the above comments.