필터 지우기
필터 지우기

How do I extract images from a docx (word) file?

조회 수: 93 (최근 30일)
Stephen Dicke
Stephen Dicke 2019년 5월 21일
댓글: Walter Roberson 2020년 7월 29일
I am trying to extract images for processing from a docx (Word) file. How do I do this?

답변 (2개)

Stephen23
Stephen23 2019년 5월 21일
편집: Stephen23 2019년 5월 21일
All OpenOffice XML formats (e.g. .docx, .xlsx, etc.) constitute XML files and supporting files zipped together into one file. You can simply access the image files by:
  1. Unzip the .docx into a folder (e.g. with the same name as the document).
  2. Open that folder, browse to the subfolder word\media to find all of the image files.
Use a reliable tool for unzipping, e.g. 7-zip, in which case the first step is trivial with a right-click on the document in windows explorer -> select "7-zip" -> and then choosing from its menu.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 5월 21일
It is also possible to use Java methods to pull an entry from a zip archive without unzipping the whole thing. Jan posted some code about a week ago that used that interface but it might have been in a resurrected older question.

댓글을 달려면 로그인하십시오.


Gagan Bhangu
Gagan Bhangu 2020년 7월 29일
Yes, you can easily extract all images from word document.
Method 1: Save your docx file as web page.
Open docx file in Microsoft Word and click on the File > Save as > and select the web page (.html) option from the save as type.
After that, you’ll see the HTML file and folder with images where you saved it on your PC.
Also, you can use Google Docs. In Docs, click on the file > Download and select save as web page.
Method 2: By Right Click on Image
You can Save image one by one fromt the MS Word by right click on the image. Select Save as picture option for this.
Method 3: Open .docx file as a .zip
Change file extension from .docx to .zip and open the zip file. Extract media folder.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 7월 29일
The question is more whether it is possible to use MATLAB to do the work.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by