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

Create standalone XML to SVG conversion for charts #2

Open
matt-dray opened this issue Jun 16, 2023 · 1 comment
Open

Create standalone XML to SVG conversion for charts #2

matt-dray opened this issue Jun 16, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@matt-dray
Copy link
Owner

We can unzip a docx to get /word/charts/chart1.xml, etc. Is there a known method to convert these to SVG?

@matt-dray matt-dray added the enhancement New feature or request label Jun 28, 2023
@matt-dray
Copy link
Owner Author

Hm, the image in the example doc is actually a PNG:

docx_fs <- system.file("examples/simple.docx", package = "wordup")
temp <- tempdir()
utils::unzip(zipfile = docx_fs, exdir = temp)
list.files(file.path(temp, "word", "media"))
## [1] "image1.png"

Perhaps add a more realistic chart example into the example docx (i.e. a chart produced in Excel and copied over). That would be a better simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant