Aidan, this isn't really a solution, but IIRC, with Word you can add images
to documents two ways.  If you go to Insert > Picture > From File, then
choose your .jpg and add it, then the document filesize should be
relatively small.  If however you're copying and pasting across
applications, then you end up with a document of several Mb.  It sounds
like your documents were made using the second method?

Don't suppose that helps any...




                                                                                       
                                     
                    "Aidan Whitehall"                                                  
                                     
                    <[EMAIL PROTECTED]        To:     <[EMAIL PROTECTED]>              
                       
                    nks.co.uk>                    cc:                                  
                                     
                                                  Subject:     [ cf-dev ] WOT: 
Resizing images in Word documents            
                    28/05/2004 17:20                                                   
                                     
                    Please respond to dev                                              
                                     
                                                                                       
                                     
                                                                                       
                                     



Does anyone have any experience of programmatically adjusting images in
Word documents? I need to reduce the file size of about 500 Word docs,
all of which have 5 or so images embedded at the original size but only
displayed at about 25%. Each one weighs in at somewhere between 4 and 6
Mb, and we need to get that down by much as possible.

Not having used Word in this way before, is it a question of:

 looping through the documents images array
 for each image, determining it's visible dimensions
 cutting the image from the document
 resizing it in memory to the visible dimensions
 pasting it back at the same spot

Sounds like a crazy plan, but might it just work? Anyone got a handle on
where to start?

Thanks, and sorry for the Friday OT.

--
Aidan Whitehall   [EMAIL PROTECTED]
Macromedia ColdFusion Developer
Fairbanks Environmental   +44 (0)1695 51775

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]






-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to