doc

^m character in doc file

I am creating a doc file and writing a text containing ^m in it and facing issue. Does this ^m is a special character for doc file ? If I replace ^m with some other characters (like ^m with >m or any other) then It works fine. I faced this issue with other characters too like ^a and few other. What could be the solution ? ...

Uploading PDF or .doc and security

I have a script that lets the user upload text files (PDF or doc) to the server, then the plan is to convert them to raw text. But until the file is converted, it's in its raw format, which makes me worried about viruses and all kinds of nasty things. Any ideas what I need to do to minimize the risk of these unknown files. How to check...

print pdf/doc/rtf through java web application

my requirement is to directly print either pdf or ms doc file through java web application. client don't even want to know where the file is saved. On click of print button,a file is created and it is saved somewhere. After the creation,i want the file to automaticaaly go to printer. i have tried : javax.print for pdf. Here printer i...

Wordpress plugin to search into post's attachments (typically text file like doc or Pdf)

I'm looking for a plugin to extend the search into the content of attachments (typically text file like doc or Pdf). ...

Determine if the document is DOC or DOCX in Java app without knowing its extension

There is a constraint in the content management system that requires to store all word documents with specific extension (different from DOC or DOCX). However, when outputting the document to user we need to know if it is a DOC or DOCX file in order to provide the right MIME type. So, is there a way to programatically find out if docume...

How to convert .Doc to Tiff/Jpeg programmatically using C#?

I need to find a way of converting Word Doc files to Jpeg of Tiff files using C#/.NET. I cannot use any virtual printing drivers such as Microsoft Office Document Imaging. I can only use C# and/or C++ Libraries. Are there any free methods or APIs to accomplish this? ...

Java lib for WordML to Word2002 conversion

Hello, For a project I am working on, I need to convert WordML stream into Word 2002 compatible .doc format (don't ask why - but quite a large group of users are still on Word 2002 with upgrade to latest version not feasible till Q4 2010). I have tried to research a lot of options and have mostly hit a dead end. My use case is that th...

Loading pdf\doc\odt files with a form in a secure way

Hello everyone, I've been searching online for a secure way to load files in php but I couldn't find any convincing solution. What I'm trying to do is loading a curriculum vitae by form uploading. This file should be viewed only by the website admin (the form will mail him the link) and obviously the form should be secure (even thought t...

How can i extract word 2003 doc properties from linux command shell?

How can i extract word 2003 doc properties from linux command shell? E.g extract the properties: title, summary, keywords, author, etc I am writting a set of php functions for use ina project that needs to extract meta data from various file formats. Can anyone help? ...

Programmatically search + replace in a .doc

If I'm given a .doc file with special tags in it such as [first_name], how do I go about replacing all occurrences of it with something like "Clark"? A simple binary replacement only works if the replacement string is the exact same length. Haskell, C, and C++ answers would be best, but any compiled language would do. I'd also prefer to...

Alternative to Phplivedocx which can change images dynamically in template

Hello. For my web-application i use phplivedocx for docx/pdf generating reports. But now i need to insert images, that user will upload to my web-site, to the docx template. On the phplivedocx forums i found that this software doesn't support this feature. Is there any other tools, that can produce docx/pdf pages from template, and can a...

how i can convert days to year in google doc spreadsheet

how i can convert days to year in google doc spreadsheet ...

Write MS Word Doc using itextsharp library

Can I write MS Word document using iTextSharp library? If yes, please give me sample code. ...

about python __doc__ docstring

i want to show docstring of my function, but if i use like this @cost_time def func(): "define ...." blabla print func.__doc__ it will not show the docstring,just because i use some meta programming tricky, how can fix this? ...

How to convert ODT to DOC/RTF without openoffice.org

Is there any way to convert odt documents to doc or rtf on linux without openoffice or any library that relies on having openoffice installed ? ...