r054
02-22-2008, 11:55 AM
Hi,
I'm trying to detect images in a document. Is there a predefined bookmark or object that defines an image?
This is the big picture of what I'm trying to do:
I have an opened formatted document with images in the document. I need to copy paste the document as UNFORMATTED text while keeping the images.
My plan is to read the document, select from the beginning of the document up to the beginning of the first image, copy and paste it as unformatted text in a new document. Then go back to the original document, copy the image and paste to the new document. Back to the original select the text after the first image until the beginning of the next image, copy and paste it as unformatted text to the new doc and so on until the end of the document.
I'm not sure if this is the best way to do it. If you have a better idea or any suggestion, I'd really appreciate it.
thanks
I'm trying to detect images in a document. Is there a predefined bookmark or object that defines an image?
This is the big picture of what I'm trying to do:
I have an opened formatted document with images in the document. I need to copy paste the document as UNFORMATTED text while keeping the images.
My plan is to read the document, select from the beginning of the document up to the beginning of the first image, copy and paste it as unformatted text in a new document. Then go back to the original document, copy the image and paste to the new document. Back to the original select the text after the first image until the beginning of the next image, copy and paste it as unformatted text to the new doc and so on until the end of the document.
I'm not sure if this is the best way to do it. If you have a better idea or any suggestion, I'd really appreciate it.
thanks