Converting linked images to embedded

F

fogharty

Is there an easy way to convert linked images into embedded images?

I have web pages that need to be made into Word docs. Each page has
dozens of small graphics.
Just copying and pasting the web page doesn't work; what we have been
doing is dragging the html file onto Word and saving it as a doc (this
is on a PC using Word 2003). The problem is, once you move the file to
a different server all the links are broken.

I've tried toggling field codes and doing a Find and Replace for the
new path; that doesn't work. There are about 10 documents with hundreds
of images, to update each image one at a time would be very tedious.

Right now the field code is something like: { INCLUDEPICTURE \d
"\\\\Server\\folder1\\folder2\\folder3\\unit1\\images\\02_under_164.jpg"
\* MERGEFORMATINET }

and I would like to change it to: { INCLUDEPICTURE
":images:02_under_164.jpg" \*MERGEFORMAT }

Is there a way I could save the html file so that it will save the
images along with the doc?

I can use either Word 98 (OS 9.2.2) or Word 2004 (OS 10.4.3) whichever
would work best.
 
J

Jim Gordon MVP

Hi,

I'm not sure whether these steps will help you, but here goes.

If you control-click (right-click) on a picture that is being displayed
via the INCLUDEPICTURE Word filed, choose EDIT PICTURE. Don't do any
editing, just click the CLOSE PICTURE button.

Next, control-click (right-click) on the picture and choose PICTURE
OBJECT > CONVERT > CONVERT TO MICROSOFT WORD PICTURE.

This makes the picture become embedded into the Word document. It also
makes the document larger.

Another option is to use TOOLS > CUSTOMIZE. Click on the COMMANDS tab.
In the right side drag the EDITCOPYASPICTURE command to any toolbar.
Click OK to close the CUSTOMIZE dialog box. Select the INCLUDEPICTURE
picture then click the COPY AS PICTURE button, then use EDIT > PASTE or
APPLE+v on the keyboard to paste the picture from the clipboard directly
in place of the INCLUDEPICTURE image. If you do this a lot you might
want to check out the COPYASPICTURE method in the visual basic help so
that you can make a macro to do it for you.

-Jim
 
D

Daiya Mitchell

Okay, this seems to work in my quick test, but try it on a copy.

The links are fields. If you unlink the fields, with text it would convert
it to plain text in the document, showing the field results. With pictures,
it should pull the picture and embed it.

To unlink a field, select and press shift-cmd-F9. The appropriate Help
topic, with a little more info, is " Prevent changes to information inserted
by a field".

If the doc doesn't have fields other than pictures, you can select all and
cmd-shift-F9 (try on COPY). Otherwise do it one by one.
 
J

John McGhie [MVP - Word and Word Macintosh]

Yes: Edit>Links on the Edit menu enables you to replace the link with its
most recent result.

Alternatively, you can reveal your field codes and simply Find/Replace the
"\d" switch to nothing. When you update fields, Word will then embed the
pictures (the "\d" stands for 'don't embed').

Make sure you update the fields before you move the document to a different
server :)

No, HTML does not permit embedded images. If you save an HTML file, the
images will be saved (in a separate subfolder if you specify that)
externally to the "document".

In some browsers, and Internet Explorer is one, you can save a web page as a
"single file" with a .MHT extension. But don't do that if you want to use
it cross-platform, because not all browsers can decode an .MHT.

Cheers


Is there an easy way to convert linked images into embedded images?

I have web pages that need to be made into Word docs. Each page has
dozens of small graphics.
Just copying and pasting the web page doesn't work; what we have been
doing is dragging the html file onto Word and saving it as a doc (this
is on a PC using Word 2003). The problem is, once you move the file to
a different server all the links are broken.

I've tried toggling field codes and doing a Find and Replace for the
new path; that doesn't work. There are about 10 documents with hundreds
of images, to update each image one at a time would be very tedious.

Right now the field code is something like: { INCLUDEPICTURE \d
"\\\\Server\\folder1\\folder2\\folder3\\unit1\\images\\02_under_164.jpg"
\* MERGEFORMATINET }

and I would like to change it to: { INCLUDEPICTURE
":images:02_under_164.jpg" \*MERGEFORMAT }

Is there a way I could save the html file so that it will save the
images along with the doc?

I can use either Word 98 (OS 9.2.2) or Word 2004 (OS 10.4.3) whichever
would work best.

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top