-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline Image wrappingStyle Not Working #244
Comments
Hi @andrew-kzoo. I test with this code: $textrun = $section->addTextRun('pStyle');
$textrun->addImage('resources/_earth.jpg', array( 'wrappingStyle' => 'inline', 'width' => 40, 'height' => 40));
$textrun->addText($lipsumText); The behaviour is like what I expected. Can you elaborate what's not working correctly? Thanks. |
Ok. I see what I can do. |
Thank you! 😃 |
Hi, @andrew-kzoo. Use the following code with the latest $imageStyle = array(
'width' => 40,
'height' => 40
'wrappingStyle' => 'square',
'positioning' => 'absolute',
'posHorizontalRel' => 'margin',
'posVerticalRel' => 'line',
);
$textrun->addImage('resources/_earth.jpg', $imageStyle);
$textrun->addText($lipsumText); |
Thank you x 💯! |
You're most welcome. Please confirm and close this issue when you have time to test it. Thanks. |
@ivanlanin Could you add it as a cookbook in recipes of the documentation (https://phpword.readthedocs.org/en/latest/recipes.html), please ? I think it would be a good idea :) |
Ah, so that's what "recipes" are. Ok. Will do. |
Done: https://phpword.readthedocs.org/en/develop/recipes.html Are those items suitable for receipes? |
Perfect. Don't hesitate to add images :) |
Again, my thanks to each of you for your excellent work! https://phpword.readthedocs.org/en/develop/recipes.html#create-float-left-image has a typo: 'height' => 40, |
Thanks, @andrew-kzoo. I'll fix it ASAP. Btw, have you got any chance to confirm that your issue was solved? Please close this issue when you've done that. Thanks. |
@ivanlanin I fixed the typo error :) |
Thanks! |
Hi @andrew-kzoo. We're going to release 0.11.0 this weekend. Can we close this issue? Thanks. |
Again, because your work is appreciated, thanks to each of you for your efforts! |
You're welcome :) Thanks. |
Is it also possible to float an image using |
Image wrapping with
wrappingStyle = 'inline'
is not working correctly.http://phpword.readthedocs.org/en/latest/elements.html#images
The text was updated successfully, but these errors were encountered: