Project: titanium
Issue TIMOB-17670: iOS8: DocumentViewer not displaying PDF files
h3. Issue Using DocumentViewer on iOS 8 is not rendering PDF files. h3. Steps to repro 1. Run test case (test.zip) 2. Click on Launch Doc button 3. On the navigation bar press the done button 4. Click on Launch PDF button h5. Expected result: After clicking on Launch Doc button the .docx file is rendered in the DocumentViewer and after clicking on Launch PDF button the .pdf file is also shown in the DocumentViewer. h5. Actual result: After clicking on Launch Doc button the .docx file is rendered in the DocumentViewer and after clicking on Launch PDF button the .pdf file is not being shown by the DocumentViewer. h3. Sample code {code} var win = Ti.UI.createWindow(); // Use a NavigationWindow to create a navigation bar for the window var navWin = Ti.UI.iOS.createNavigationWindow({window: win}); var navButton = Titanium.UI.createButton({title:'Launch'}); win.RightNavButton = navButton; var docButton = Titanium.UI.createButton({ title:'Launch Doc', height:40, width:200, top:230 }); win.add(docButton); var pdfButton = Titanium.UI.createButton({ title:'Launch PDF', height:40, width:200, top:280 }); win.add(pdfButton); // Create a document viewer to preview a PDF file docViewer = Ti.UI.iOS.createDocumentViewer(); // Opens the options menu and when the user clicks on 'Quick Look' // the document viewer launches with an animated transition navButton.addEventListener('click', function(){	docViewer.show({view:navButton, animated: true}); }); // The document viewer immediately launches without an animation docButton.addEventListener('click', function(){	docViewer.url = 'test1.docx';	docViewer.show();	}); pdfButton.addEventListener('click', function(){	docViewer.url = 'test.pdf';	docViewer.show();	}); navWin.open(); {code} h3. Additional info There are reports of this happening on native also apparently related to changes in how to call the UIDocumentInteractionController http://stackoverflow.com/questions/25430069/uidocumentinteractioncontroller-displaying-blank-pdf
Story points: 5