PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Timothy Edwards   PHP DOCX to Image   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP DOCX to Image
Extract images from Microsoft Word DOCX files
Author: By
Last change:
Date: 2 years ago
Size: 888 bytes
 

Contents

Class file image Download

A php class to extract all the images from a Word DOCX document and save them as separate image files

Description

This php class will take a DOCX type Word document and extract all the images that are contined in it. They will be then all be saved in a directory with the same name as the original DOCX file. This directory will be automatically created if it does not exist. In the normal mode this class will not provide any output to screen. A php demonstration file (imgtest.php) is included. This demonstration file expects the DOCX file to be named 'sample.docx'.

USAGE

Normal mode to save all the images (no output to screen)

$rt = new WordPHP(false); or $rt = new WordPHP();

Display on screen the names of the images found and saved

$rt = new WordPHP(true);

Read docx file and save all the images found

$rt->readDocument('FILENAME');