Forum


Replies: 2   Views: 3553
Addimage embeds the image in the header
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 seb  · 25-09-2013 - 12:52

Hello,



When creating a blank document and inserting an image through addImage as the first command, the image appears to be inserted in the header. I'm using the following code which specifies the image to be inserted into the document body, but it ends up in the header:



 



$docx = new CreateDocx();



$docx->addImage(array(

                'name' => $cover_file,

                'textWrap' => 1,

                'horizontalOffset' => $horizontal_offset,

                'verticalOffset' => $vertical_offset,

                'target' => 'document'

            ));



 



 


Posted by jorgelj  · 26-09-2013 - 09:02

Hello,



Please run example/easy/Image.php example. I have tried it and it works fine.



Regards.