Forum


Replies: 2   Views: 3286
Add image in header with no line breaks
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 lloyd_roles  · 20-01-2012 - 11:16

I am using pro version, and trying to add only an image in the Header.

$paramsHeader = array(
'name' => '../../header.png',
'textWrap' => 5,
'font' => 'Times New Roman'
);

$docx->addHeader('', $paramsHeader);

I want the image to start at the very beginning of the page, so for text I just gave quotes.

But only after a line break, image is displayed.
How to remove the line break in Header?

Also, with addText( ) is it possible to remove line breaks when required?

Posted by nirzarit  · 11-04-2013 - 12:13

Hi,

i am having the same problem..
Is there any solution for this???

Please HELP!

Thanks,