locked
Extracting images and drawings in a Word document RRS feed

  • Question

  • Is it possible to extract all images and shapes present in word document into a jpeg file using Open XML SDK?

    I am using word 2007 and VS 2008 Pro.


    Antony

    Wednesday, December 12, 2012 9:14 AM

Answers

  • Hi Leemanto,

    Thanks for posting in the MSDN Forum. not all drawings or images can be extracted. Some of build in graph can't be extracted from document via Open Xml. The graph which insert by Customer can be extracted.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by 许阳(无锡) Monday, December 24, 2012 7:45 AM
    Thursday, December 13, 2012 5:02 AM
  • Hi Leemanto,

    I have no resource about what your want. However It's easy to found out whether the picture is a customized image via search whether there have ImagePart in the Wordprocessing Document.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by 许阳(无锡) Wednesday, December 19, 2012 2:47 AM
    • Marked as answer by 许阳(无锡) Monday, December 24, 2012 7:45 AM
    Tuesday, December 18, 2012 6:07 AM

All replies

  • Hi Leemanto,

    Thanks for posting in the MSDN Forum. not all drawings or images can be extracted. Some of build in graph can't be extracted from document via Open Xml. The graph which insert by Customer can be extracted.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by 许阳(无锡) Monday, December 24, 2012 7:45 AM
    Thursday, December 13, 2012 5:02 AM
  • Hi Tom,

    Thanks for your reply.

    Could you please share the list of objects which can not extracted via Open XML. My requirement is autometically extracting user inserted images,shapes,smart arts and charts from word document into a seperate jpeg file.

    Expecting alternative solutions and suggestions?

    Thanks in advance.


    Antony

    Thursday, December 13, 2012 5:21 AM
  • Hi Leemanto,

    I have no resource about what your want. However It's easy to found out whether the picture is a customized image via search whether there have ImagePart in the Wordprocessing Document.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by 许阳(无锡) Wednesday, December 19, 2012 2:47 AM
    • Marked as answer by 许阳(无锡) Monday, December 24, 2012 7:45 AM
    Tuesday, December 18, 2012 6:07 AM