Forum


Replies: 3   Views: 3452
Import header and footer from another docx
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 organizzazione  · 06-03-2014 - 17:43

Hello All,



I've just purchased a corporate License and I found my first issue: importing a very simple header (a table with some cells, populated with some words) from another docx, the resulting docx header has lost:




  • - document margin sizes

  • - header's table lines

  • - rows and columns width/height



Any hints?



Thanks and Regards


Posted by jorgelj  · 07-03-2014 - 09:11

Hello,



Please run the included example easy/ImportHeaderAndFooter.php and check if imports both contents. And post the result.



Regards.


Posted by organizzazione  · 07-03-2014 - 11:20

Hello,



I've run the example you pointed me: I can't post you the images, but I can describe you that the header has been imported without the borders. The two images and the "header" word looks the same, but the underneath table is not formatted as the source (no borders at all).



The margins of the generated document are the same as the source, but I think it's because it's some kind a "default" border size of phpdocx library? The example I described in my previous post had the same resulting margin size than this one, so I'm supposing phpdocx library is using its own margin size with no care of the original one?



Pls note, I'm using MS Word 2010.



Thanks



Roberto