PDA

View Full Version : Load pdf files



precupflorin
18 Jun 2010, 1:59 AM
With Sencha Touch i can use pdf files?I want make a catalog interactif in Html5 and i must use PDF files,for IPhone and IPad.
Thanks!

Condor
18 Jun 2010, 2:45 AM
Can you actually view .pdf files from within the iPhone/iPad browser?

I know I can't from my Android phone (Android 1.6 doesn't even have a pdf viewer - I had to upgrade to 2.1 to get it).

precupflorin
18 Jun 2010, 3:40 AM
Yes i can view the pdf files.I know that Android doesn`t support pdf files,but Iphone could load pdf files within browser;I doesn`t know if i HTML5 and Sencha Touch could help me implement pdf files.

mizaelm
31 Mar 2011, 7:47 AM
Hi I did use google docs and doing quite well, but I have a problem with the pdf iphone folds down infinitely guess it's css, but works perfectly ipad and android

var panel = demos.search, searchTpl = panel.searchTpl;
panel.update('');
panel.setLoading(true, true);
console.log(panel);
panel.update('<iframe src="http://docs.google.com/gview?url='+url+'&embedded=true" style="width:100%; height:100%;" frameborder="0"></iframe>');


or Iphone

if(pos!=-1 && Ext.is.Phone){
var visorpdf = new Ext.Panel({
floating: true,
modal: true,
closable:true,
centered: true,
width: '100%',
height: '100%',
styleHtmlContent: false,
scroll: 'vertical',
html:'<iframe src="http://docs.google.com/gview?url='+url+'&embedded=true" style="width:100%; height:100%;" frameborder="0"></iframe>',
dockedItems: [{
dock: 'top',
xtype: 'toolbar',
items:[{
text: 'cerrar',
handler: function() {
visorpdf.hide();
}
}]
}]

});
visorpdf.show();

funkyboy
21 Nov 2011, 1:04 PM
I tried on 2.2 and 2.3 and it keeps scrolling.

weazil
3 Jan 2012, 12:25 PM
heres how i got it working

<iframe height="625" width="390" scrolling="no" src="'+google_url+'" style="border:none;"></iframe>

I tried on 2.2 and 2.3 and it keeps scrolling.