Forum


Replies: 7   Views: 1280
Createdocxfromtemplate central header and footer image not showing
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 Exorion  · 04-11-2020 - 14:26

Hi guys!

CreateDocxFromTemplate central part pf header and footer image not showing, how i can implement template with all header and footer?

Posted by Exorion  · 04-11-2020 - 15:52

I have image in header and fotter on full width, but then i make a createdocxfromtemplate - i have it cutted (no center part of image) - only text - but no image

https://crm.oooleader.ru/2.png - i have such template

https://crm.oooleader.ru/1.png - if i use createfromtemplate and save - i have cutted center part

Posted by admin  · 04-11-2020 - 16:37

Hello,

CreateDocxFromTemplate doesn't do any change to the template unless some method is called. What code are you running after opening the template with CreateDocxFromTemplate?

Regards.

Posted by Exorion  · 04-11-2020 - 18:34

Yes, you right - i get this after transformDocument - i convert docx to pdf and i get this situation. In docx everything is fine! Any ideas how i can convert it to pdf without such problem?

Posted by admin  · 04-11-2020 - 18:38

Hello,

What conversion plugin method are you using to transform the document?

Please send both files (DOCX and PDF) to contact[at]phpdocx.com so we can check them.

Regards.

Posted by Exorion  · 04-11-2020 - 19:58

Docx and Pdf version sended

Posted by admin  · 04-11-2020 - 20:07

Hello,

Thanks for sending the requested documents.

The problem is that your server is using a very old LibreOffice (5.2). As explained on the documentation pages, we recommend using the latest version available on https://libreoffice.org/. Using a newer release the PDF output is correct.

Regards.