I have a Mobile Web app (for iphone) based on the Mobile controls of the Xpages extension library.
In the app the user can search for pdf and other files in the nsf files.
When the user clicks on a a filename in a view , I calculate the link like : servername/nsffilename.nsf/O/id/$FILE/filename
This opens the correct pdf file, but the user then leaves the app.
I would like to stay in the app.
I tried it with iFrames, which works fine in some browsers (IE), but not on the iphone (it only displays the first page , no way for scrolling in the pdf, no way to save the pdf file)
I also tried the download control ; but here also the user is leaving the webapp on the iphone
For an image we have a image placeholder , is something similar possible for pdf files ? a pdf placeholder ?
No, this is standard mobile web app behaviour, nothing to do with XPages. By defalt the iphone pdf viewer registers its self to handle those file types. As you have mentioned an iFrame would work to display it (wit issues) but there is no in built XPage control to hande this.
Related
Which one is Best for my Android Tutorial App (pdf viewer or web viewer) . Its a Programming tutorial app so which component i use for my app? or another suggestion to develop tutorial app.
I use pdf viewer instead of webview because pdf show all image or content offline but webview is not showing the images offline. One more Problem occur to creating a block for code between pdf.
If you have prepared your content in word/doc/pdf then the pdf viewer is best.
If you have prepared your content in HTML like web pages or website, it's best to go with the webview.
I am using a chrome extension to temporarily change layout of a Google search webpage. I am changing heading and description of the Advertisements displayed. This part works fine.
Next, I need to take screenshot of desktop, tablet and mobile views. getting desktop view is pretty straight. However, for tab/mobile view if I uses any of mobile emulator, or dev console, they refresh the html page before providing the mobile/tab emulation. This results in loosing the html page changes that were done by the chrome extension.
Is there are way to use mobile emulation without reloading/refreshing the page, so that the changes done in html are intact even in tables/mobile views.
I got the answer !
In Dev console, we have the option device toggle(Ctrl+Shift+M)
This way, temporary DOM changes done in desktop view were intact in mobile view as well.
Now that iOS devices can upload from their picture library or camera, I'm trying to use the file upload control to get ahold of these pictures via an xpage. If it's a plain XPage it's working fine - but if I try to wrap this inside of the Mobile Controls from the extension library I can't get the picture to save. Other values save to the document but not the picture.
The file upload control is bound to a rich text field.
Any ideas would be appreciated!!!!
Place the file upload inside an Iframe.
Interesting. Are you saying that you can make the file upload control work with an XPage on an iOS device? I was of the clear impression that you do not have access to the camera from a web-app. In this case you need to wrap your web-app into a layer that can access the physical (e.g. Apache Cordova aka PhoneGap)....?
I know that some of these features are on their way in html5, however, the have so far been very unreliable (crashing the phones often).
/John
I'm developing an universal application with two view controllers, a Master View Controller (a UITableViewController) and a Detail View Controller (with a UIWebView). When the user selects an item (each item is an object with a URL property) in the table, the app sets the detailItem property in the DetailViewController. I customized the setDetailItem to detect when the detailItem is set and open the related URL in the DetailViewController's web view.
The user selects another item and the web view loads the other related URL.
It works fine with items containing URLs targeting HTML files. When the URL targets a PDF file, the web view loads it normally but, when the user selects another item, the app crashes.
On the iPhone simulator it crashes if the user returns to the MasterViewController by pressing the back button in the navigation bar. On the iPad simulator, I'm using a UISplitViewController and it crashes when the user selects any other item in the MasterViewController's table view.
Even setting Xcode to display all exceptions it doesn't show any output. Only crashes in the main.m.
Curiously, if I deploy the app on the device and use it, it works fine, but if I run on the device debugging from Xcode it also crashes.
Any idea on how to fix it or is it just a bug in the simulator?
We have the same problem when displaying a PDF in a UIWebview: the simulator crashes, it works fine on devices, though. So it really looks like it could be a bug in the simulator.
BTW: we are using ARC: are you as well?
I have some pdf files located on a http server:
Like:
http://domain.com/files/file1.pdf
http://domain.com/files/file1.pdf
http://domain.com/files/file1.pdf
I need to display these files on a mobile application using java me.
I tried to display them by opening Google Docs Viewer with platformRequest. However it seems Google Docs Viewer uses ajax and many mobile browsers does not support it.
Is there an alternative for "Google Docs Viewer" for mobile devices ? Or is there a better solution for this problem ?
Unless you have something can interpret the PDF on the phone, you may need to convert the PDF to images on the server for display purposes.