Forum


Replies: 3   Views: 3353
Merge two files to have diffrent sets of page numberings
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 kobbe  · 10-08-2016 - 09:48

We have 2 generated docx files we want to have in the same file.

 

Example:

First file got page 1-3 and second file got page 1-2.

We want to remove page numbering from the second file so page numbering becomes 1-2-3-*blank*-*blank*. Basicly remove part of footer from page 4 and forward.

If not possible we want to have page numbering reseted so it becomes 1-2-3-1-2.

 

Is this possible when using the function to merge files? Or is there any other way to do it?

 

Thanks!

Posted by admin  · 10-08-2016 - 09:53

Hello,

It can be done using the MultiMerge class available in Corporate and Enterprise licenses. Which version and license of phpdocx are using?

Regards.

Posted by kobbe  · 10-08-2016 - 10:34

We use Pro version so have to upgrade in that case.

You write:

"Other office suites like LibreOffice, OpenOffice or MS Word for Mac are not compatible with altChunk."

http://www.phpdocx.com/documentation/practical/merging

 

 

Is this still the case for MS word for Mac?

Posted by admin  · 10-08-2016 - 10:42

Hello,

Yes, altChunk tags don't work with MS Word for Mac (at least all versions you have checked). To merge DOCX documents and generate a DOCX compatible output with MS Word for Windows, LibreOffice, OpenOffice and MS Word for Mac you need to use the mergeDocx method (available in the MultiMerge class).

Regards.