First get the doucuments "XTextGraphicObjectsSupplier" interface and retrieve a list containing the graphical objects stored in this document. Next create a "GraphicProvider" service to be able to store the pictures to a file. Now iterate trough the list of graphics and create a PropertyValue array to determine the type of the graphic file and its destination. Get the graphic object by reading the "Graphic" property of the container at the current index. Now use the graphic objects "XGraphic" with the "GraphicProvider" service to store the picture into the file described by the PropertyValue array. For further details see http://wi.wu-wien.ac.at/rgf/diplomarbeiten/BakkStuff/2008/200809_Frysak/200809_Frysak_Automating_OOo_ooRexx_Nutshells.pdf. |