Info

此问题已关闭。 请重新打开它进行编辑或回答。

how can i read a word document in matlab? plz help its urgent

1 次查看(过去 30 天)
i want to read a word document and want to embed a watermark in it.any help?

回答(4 个)

Jan
Jan 2013-4-24
Please be specific: What does "reading" a word document exactly mean? Do you want to read it with your eyes or import it? And in the latter case, as binary stream or as text? If you are talking about a text, how could the embedding of a watermark be possible without changing it substantially?
Currently a meaningful answer is not possible, because the question is unclear and the part, which I can understand, is not possible to be solved. While the term "urgent" is counterproductive, an exact description of the problem would be useful.

shafaq innam
shafaq innam 2013-4-24
i am sorry about that urgent i am doing a project on copyright protection of plain text using watermarking and i am using mat lab for it.now i want to make an algorithm which reads a text file and embed an image in to it as a watermark.
  1 个评论
Jan
Jan 2013-4-24
Please do not post comments as answers.
When you are sorry about the "urgent", I suggest to simply delete this term. The power to edit the text is such useful. ;-)

Image Analyst
Image Analyst 2013-4-24
I'd use ActiveX programming. Search the forum for ActiveX. I know I've posted demos for Excel and I think others may have posted code for Powerpoint or Word.
  2 个评论
shafaq innam
shafaq innam 2013-4-24
i did not find anything related to my work. The file can be a notepad file i do not know how to open a notepad file and then reading data from it.
Image Analyst
Image Analyst 2013-4-24
Jan found it for you. See his answer. Though if your data can be a simple text file, your task is vastly simplified, like he said.

Jan
Jan 2013-4-24
There is a massive difference between Word and Notepad files. While the first one requires an ActiveX method like http://www.mathworks.com/matlabcentral/fileexchange/28558-control-ms-word-from-matlab or http://www.mathworks.com/matlabcentral/fileexchange/2668-save-word-as-text, the latter can be imported easily by fileread().
Again I ask you to be as specific as possible. Which kind of files do you want to process and what kind of watermarking do you want? Would a simple HMAC be sufficient already?

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by