PDF and Titanium SDK - pdf

I'm trying to make a app which is able to display PDFs. It should be possible to click web links within the document and dynamically load new PDFs into the app.
The file download and REST/JSON communication shouldn't be a problem but the PDF part looks kinda hard. Is there a way to display PDFs via the Appcelerator Titanium SDK?
This is app is targeting the iPad and iPhone.

You can show pdf files using Titanium.UI.WebView

Related

Native way to inform user there is a mobile app?

Often when viewing a website on a mobile device you'll get a notification that a mobile app is available, or if you already have the app downloaded you'll have the option to open the URL in the app.
Is there a native way to do this or are these notifications always custom?
When users click on a link or download a file and the suggestion pops up to open the respective app, that's called deep linking. iOS labels it as Universal Links and Android uses App Links.

What's the best method for downloading a PDF from a sapUI5 App?

I need a 'Download PDF' feature for my SAPUI5 app which contains Viz charts (SVG's) as well as other more standard HTML elements.
I've already looked into jsPDF, html2canvas etc.
What is the recommended method?
It needs to work both as a Web app and also as a packaged Cordova app.
This has been somewhat answered here: Save Web page directly to PDF using JS
This method should work both in web app and as a Cordova app.
As mentioned there the best choice would still be to popup the "print to PDF" window (just as pressing ctrl+p in most browsers) and letting the user save it.
Cheers.

How to prevent file sharing with Quick Look PDF viewer

I am using the QuickLook framework to display PDFs in my app. The pdfs are downloaded and stored in my apps sandbox, in the Application_Support directory.
Basically, I open the PDF in my app, no problems and then close my app.
Now if I open the Adobe App on my device, the pdf I was viewing with my app is available in
the Adobe app.
Is there any way of preventing this sharing of my pdf between my app and the Adobe App
Any help will be much appreciated
j
One solution would be to hide the right navigation button on the Quick Look Viewer nav bar.

How to embed an office document in a Metro App?

Is it possible to embed an office document in a Metro app without having to parse it manually?
I'm thinking about a preview or even a the possibility to make small changes to it. I'm not asking about starting it externally but using it directly in a Metro app.
You cannot embed directly into a Metro style app. It may be possible to do something with the Skydrive API and embedding documents, but more research would be required. Here is an example on using the Live SDK from a Metro style app.
I would just use webview controller and open the document from Skydrive with it.
That way you can open the document as editable or just show it.

How to attach a file from ipad in your application?

I have developed an application in ipad, i want to browse a file from ipad and attach it to my apps..it should not be like e-mail attachment..am sorting out the code but am gettin code for only email attachment
The only files on the iPad your app will be allowed to browse are the files inside your app's sandbox or those accessed using a framework like the Assets Library Framework. As for "attaching a file to your apps", what do you mean by that? Can you clarify?