How to read a PDF file? - windows-phone-8

I am building a Windows Phone 8.1 app, and I need to open PDF files from local storage in the app. I have no clue how to do it.
Just able to extract the text from the PDF would also work.

Windows.Data.Pdf API is only limited to Windows 8.1 You can check out 3rd party SDKs
ComponentOne PDF Viewer

You can use itextsharp library for silverlight/windows phone apps.

Related

Titanium Windows Phone: How can i save a file in visible folders?

I'm developing a windows phone application built with Titanium SDK 5.2.2.
I'm not able to save a file in directories directly accessible by the device (like Downloads directory).
I tried to use the only supported functionalities of Titanium API Titanium.Filesystem.getFile and Titanium.Filesystem.File.write, but the only way to save the file is to use Ti.FileSystem.applicationDataDirectory or Ti.File.resourcesDirectory to decide the path where store it.
It seems that, using these API, I cannot store file in one of the directories visible by the device(Documents, Downloads, Photos, Music), and then make them available inside the device.
Can I perform this download in the path visible to the device such as Downloads folder?
You might be able to use the externalStorageDirectory location:
https://github.com/appcelerator/titanium_mobile_windows/blob/e3ecddfe13179509e3b8d0699141763262ef5a97/Source/Filesystem/src/Filesystem.cpp#L81
We've had a similar request to expose the Downloads/Documents folder for iOS. I'd suggest to add a comment to request parity for Windows or create a new ticket:
https://jira.appcelerator.org/browse/TIMOB-23197
I opened an issue on Appcelerator JIRA for this question:
https://jira.appcelerator.org/browse/AC-3615 .

How to open .docx files with Web View in Windows Phone App 8/8.1 without default MS-OFFICE

Is there any option to open word file in Windows Phone with web view ?
I get byte array data from specified API, and I want to show it on web view in my application.
No
You are out of luck
There are two way you can handle the DOCX files. You create a file and use Launcher.LaunchFileAsync to let the system open it in the default app (MS Office installed on Windows Phone). Or you can try to find a third party library that can display DOCX files.

OneDrive not available in FilePicker

I am playing alittle with windows phone 8.1 app creating. Using C# and phone emulator in VS2013. I have read on microsoft's page that i should be able to see OneDrive in standard file picker (msdn.microsoft.com/en-US/en-en/library/windows/apps/dn263258.aspx):
Use the built-in Windows features.
Whenever possible, use the Windows features and UI to host or interact
with OneDrive. For instance, use the file picker provided by the
Windows.Storage.Pickers namespace for opening and saving files. As
another example, have your app use the Windows application data APIs
to save smaller pieces of data across a user's devices.
I am using standard code from tutorial like:
openPicker.FileTypeFilter.Add("*");
StorageFile file = await openPicker.PickSingleFileAsync();
and it works but there is no OneDrive to choose. I have internet connection on emulated device and i am logged in to OneDrive.
Have you integrated your file picker with the OneDrive contract?: http://msdn.microsoft.com/en-us/library/windows/apps/hh465192.aspx
You can also use the Live SDK single sign-on feature for Windows Phone here: http://msdn.microsoft.com/en-us/library/dn631823.aspx This way, your app should work for your testing purposes because you are already signed in.
I hope this helps!

If I use Javascript for my scripts in Unity, will I be able to export the project to Windows Phone?

As above. Will I be able to publish the app to Windows Phone which is using Javascript inside Unity project?
unity is a cross platform engine so what you code inside it can be used all across platforms . no matter what language you use

Windows Store WinJS App and LESS

Is it possible to use LESS files in a WinJS application for the Windows Store?
I like how the Web Essentials extension works with web apps and would like to have this functionality in my WinJS app.
Yes, as long as you've got it setup to compile and you add the output CSS files to your project, it works fine. I'm using it in a WinJS project.