Can .DOC and .XLS files be converted to PDF on the iPhone? - iphone

How can I convert .DOC and .XLS files to PDF?

You could make a detour. If you can copy the files to your PC from iphone, use PrimoPDF. It installs as a printer in your system (Windows Platform) and gives the output file as PDF.
Whatever be the type of document, it will get converted to PDF if it can be printed.
Then re-transfer the files to your iphone.
Best of Luck!!

Related

Identify docx pptx xlsx and other msoffice files correctly rather than applicaton/zip

Currently, im working on a perl script that should allow a file to be uploaded, and then process it, and then send it to a printer.
http://code.google.com/p/web-printer-http/
Apparently, both zip and microsoft office files ending in "...x" identify themselves as application/zip when using /usr/bin/file.
Any idea to differ them?
The differing should not be based on extension since the uploading system may be unabe to use extensions (like mobile phones and such).
Rather, it should judge the content entirely based on file content.
There's no way to distinguish between a .zip file and an Office Open XML file (like .docx, xslx, .pptx, etc) without peeking inside the zip.
All of the various open XML formats use .ZIP compression. Therefore they are zip files.
If the zipfile conforms to the Open Packaging Convention, then it may also be an Open XML (Office) document.
A good heuristic is if the zip file contains a file called /[Content_Types].xml, then it is an OPC file. To determine if the zip file contains a file of that name, you must read the zipfile directory. Use a zip library to do that.

Create/Edit .doc .xls files on the iPhone/iPad

I know .doc and .xls can be viewed using UIWebView but I want to make an App that will edit .doc and .xls files. could anyone enlighten me on how should I do this? or a library I can use or buy.
I believe you can utilize Googls docs api.
http://code.google.com/apis/documents/
http://code.google.com/apis/spreadsheets/

creating a full html file out of webloc in a batch mode

I've got over 400 bookmarks saved as .webloc files. I'd like to move them to the iPhone's goodReader app. goodReader cannot open webloc files. It can sork with pdf, html but not webloc.
Do you know of a way or a program that would take a folder as its input, and convert every single .webloc file in it into a PDF version or a html version - so I can grab the converted files and move them onto iPhone.
Thank you
Try this, it should be able to convert the files to pdf http://files.macscripter.net/joy/files/webloc2pdf.zip

how to read .rtf file from the FTP server?

I know how to read text file from the ftp server.I have used this logic for rtf file.But it gives wrong out put.Is it possible to read rtf file from the server?If possible then please help me.
You need software that understands the rtf file format. Microsoft Word does. Most plain text editors will not be able to show you the contents of a file in rtf format.
Google for rtf format
Added: didn't notice that you're on an iPhone platform. Google for "rtf iphone" and you'll see several choices including http://prmac.com/release-id-4180.htm

Upload text file on FTP server using iPhone

I have implemented code for uploading images and directory to FTP using iPhone.
But I need to upload text file on FTP using iPhone. Can you please send me code for that.
Here's an example:
http://modmyi.com/forums/iphone-ipod-touch-sdk-development-discussion/328541-ftp-usage-iphone-applications.html
It uploads one byte at a time, so be sure your strings are ASCII encoded if you are expecting ASCII.
Here is a script to upload entire directory including text, binary etc. files. It creates subdirectories as needed.
http://www.biterscripting.com/SS_FTPUpload.html
Start with that script and change it to suit your particular situation.