WORK IN PROGRESS
This pull request introduces support for the WPS file format in the PHPWord library. The most important changes include the addition of a new reader and writer for WPS files, as well as updates to the IOFactory
to recognize the new format.
src/PhpWord/IOFactory.php
: Updated the createWriter
method to include ‘WPS’ as a valid writer option.src/PhpWord/Reader/WPS.php
: Added a new class to handle reading WPS files, including methods for loading both binary and XML-based WPS files.src/PhpWord/Reader/WPS/AbstractPart.php
: Introduced an abstract class for reading different parts of a WPS file.src/PhpWord/Reader/WPS/Content.php
: Implemented the content reader for WPS files, capable of reading paragraphs, headings, and other elements.src/PhpWord/Reader/WPS/Meta.php
: Added a class to read metadata from WPS files, such as title, subject, and creator.src/PhpWord/Reader/WPSBinaryReader.php
: Created a reader for binary WPS files, including methods to extract text and handle OLE format.src/PhpWord/Writer/WPS.php
: Added a new class to handle writing WPS files, including methods to save PhpWord
objects to WPS format.src/PhpWord/Writer/WPS/Media.php
: Implemented media handling for WPS files, allowing for the inclusion of images and other media elements.Fixes #69
/claim #69
Sambit Chakraborty
@Sambit003
PHPOffice
@PHPOffice