Is there any possibility to open word or pdf file in Windows Phone ?
I get the file byte data from specified API, and I want to have possibility in my application to preview the file...
you might have a look at this tutorial:
http://mobile.dzone.com/news/displaying-pdf-files-windows
But the component used is not open source. http://www.componentone.com/SuperProducts/PdfViewerPhone/
As far as i know there are no open source pdf viewer implementations for WP7/8 available.
You could try to get ComponentOne for free or with an massiv discount if you are an registered windows phone developer. Have a look at http://dev.windowsphone.com/en-us/featured/partners
I think you need to use FOXIT SDK for WP7
Related
I'm creating an educational application for poor students who have android devices running on Android 4.1 and above.
I tried lots of packages but
most of them make the app crash and the rest take long to load the file and the application becomes heavy to use.
Is there a package or a way to improve the the performance?
I don't want to convert the pdf pages to images because this will make the size of the app very big to download.
These are the packages that I used:
flutter_full_pdf_viewer: ^1.0.6
pdf_image_renderer: ^0.5.0
advance_pdf_viewer: ^1.2.2
flutter_cached_pdfview: ^0.3.5 #min API Level 20
printing: ^5.2.1
pdf_flutter: ^1.1.4
flutter_pdf_viewer: ^0.6.1
native_pdf_view: ^4.0.1
flutter_pdfview: ^1.1.0
`
If you are facing issues with every pdf viewer then my suggestion would be to not use your app pdf viewer instead if possible you can use the default pdf viewer which generally comes preinstalled in devices. And you would need a way to know if a phone has an app that can open pdf files or not and in case it is not there then use your app pdf viewer.
The second option would be to split the pdf files into multiple pdf files like chapters, etc. I think this option is very much viable.
Also, you can try this package syncfusion_flutter_pdfviewer. I'm using it as of now and it is good.
I am using Windows 8 RTM and Visual Studio Express 2012 for Windows Desktop. I am trying to write an application that uses UIRibbon in Visual C++. (Because I have the Express version only, I don't have access to MFC; please don't use it in your answer.)
The problem has to do with the icons I use in the ribbon. Because Windows 7 compatibility is a requirement for this project, I cannot use PNG images; I am stuck with old-school BMPs. The problem is that, while some of the BMPs are displaying correctly, most of the images have black bounding-boxes around them. I suspect the problem has to do with the BMP files, and is not in the ribbon XML file or in the code.
The BMP that displays correctly I downloaded off the Internet as part of a sample that I adapted. The BMPs that don't display correctly I extracted from an ICO file, then converted to a 32-bit image using the System.Drawing.Bitmap .NET API. (This conversion process is in done in a separate program as part of my build procedure, not at runtime.)
My question is: Does changing the bit depth of a BMP in this manner affect the colors in the image? And, if so, can anyone point out a free tool that can turn a PNG file into a 32-bit BMP file that works correctly in the Windows UIRibbon?
Do you speak of the Windows Ribbon Framework here? If so, you wouldn't be able to use PNGs anyway as the framework supports BMP only for Windows 7. With Windows 8 you can also use PNGs. See the regarding MSDN article for more information.
For a free tool which converts your PNGs into compatible BMP files, you should have a look at the visual designer that comes with the "Windows Ribbon Framework for Delphi".
You can simply load you XML markup into the editor and add your pictures. The editor will then convert the added files into BMPs if required. You can also use the editor to check if your Ribbon definition looks right. It produces valid "Windows Ribbon Framework" XML markup, so you can use the markup file in any other language such as C++, C# or Delphi for your further application development.
I'm getting quite a few emails with logs in XML format attached and I want to associate my own app with the XML file type on Windows Phone Mango, overwriting the default xml viewer.
If overwriting isn't possible I can get the logs generated with a custom extension. I would then need to associate the extension with my app same way Adobe Reader does it for PDFs.
Is this possible?
Thanks
Currently there is no way to set your app as the default viewer for any file extension. The closest you can get at the moment is using extensibility. However, these are limited to Photos, Music and Search and not custom extensions. (Even then, your app wouldn't be the default viewer, but it would be accessible from the respective hubs).
How can I render a pdf stream in a new memory using win32 API ?
I know that ShellExecute can be used if the file is already saved on disk but what if I want to do that without having to first save the file ?
Thanks
As far as I'm aware, win32 doesn't include a way to natively display PDF files. So I think your only choice is to save it to disk (perhaps in a temporary folder somewhere) and then use ShellExecute or equivalent to launch it, and hope the user has a PDF viewing application installed. :(
Edit: Andreas in a comment to this answer mentioned that there's an ActiveX control you should use, if you can rely on Adobe Acrobat being installed.
You can use MuPDF to render PDF in native Win32 program.
Learn the SumatraPDF source code to see how it works (SumatraPDF itself use MuPDF).
How can I create the preview image for MS Office files like word, excel, power point in cocoa. Can anyone suggest me on this like how to handle those file? I tried using the Bitmap representation of the .doc files. It didn't work. Which API I can use?
It sounds like you want to use Quick Look. There is a great example of using Quick Look to generate an NSImage you can display anywhere with this code from Matt Gemmell
Look inside the snippets/QuickLook folder in the ZIP file he links to, and you'll find his code for getting the Quick Look preview for any file. Leopard and Snow Leopard can preview most Office files out of the box without needing Office to be installed.