Forum


Replies: 1   Views: 1301
New bulkprocessing and getdocuments sets returndocxstructure to false
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by michael.stubenvoll  · 27-10-2020 - 08:34

Hi,

i am little big curious why the initalizing of a new BulkProcessing and the execution of the getDocuments method, causes returnDocxStructure to be set to false. Is this on purpose? I didnĀ“t expected that and I was confused why the following mergeDocx always saved my files to disk.

Greetings

Michael

Posted by admin  · 27-10-2020 - 09:46

Hello,

BlukProcessing works with CreateDocx::$returnDocxStructure internally, setting it as true and false to load the template as in-memory document automatically and work with WordFragments. After using that class, if you need to keep using in-memory documents you need to set it again:

CreateDocx::$returnDocxStructure = true;

We move the request to the dev team to keep the initial value if it was already set as true.

Regards.