Skip to content
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

Embed WMF or SVG? #878

Closed
mraspe opened this issue Aug 30, 2016 · 8 comments
Closed

Embed WMF or SVG? #878

mraspe opened this issue Aug 30, 2016 · 8 comments

Comments

@mraspe
Copy link

mraspe commented Aug 30, 2016

Hello,

is it possible to embed WMF (or SVG) in word documents with PHPWord?

Best regards
Mario


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@thevel
Copy link

thevel commented Mar 13, 2017

Same here PHPWord is good for generating word docx,
but support for svg seems missing ( need it for importing generated graphs)

@tobwen
Copy link

tobwen commented Nov 30, 2018

Same here, but EMF would be better, since you can embedd EPS into EMF.

@larjohn
Copy link

larjohn commented Dec 1, 2018

I hacked around with Image.php and found out it was not that hard to embed emf or svg files. We just need a typical getimagesize alternative.

@tobwen
Copy link

tobwen commented Dec 6, 2018

I hacked around with Image.php and found out it was not that hard to embed emf or svg files. We just need a typical getimagesize alternative.

Why not go the hard way, render to temporary raster, getimagesize and use this?

@landerdominguez
Copy link

I hacked around with Image.php and found out it was not that hard to embed emf or svg files. We just need a typical getimagesize alternative.

Could you share how did you get it?

@mraspe mraspe closed this as completed Sep 23, 2021
@tobwen
Copy link

tobwen commented Feb 5, 2022

@mraspe
Why was this report closed? Is there a fix?

@gaby64
Copy link

gaby64 commented Jun 22, 2022

#878 (comment)

I dont see the changes on your repo of PHPWord, could you push to it to share?

@gaby64
Copy link

gaby64 commented Jun 24, 2022

@mraspe Why was this report closed? Is there a fix?

Here you go, I made the fix, couldn't wait on @larjohn

https://github.com/gaby64/PHPWord/tree/add-svg-emf-wmf

sudo apt install emf2svg php-curl php-imagick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants