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

How to parse #66

Open
KINGSABRI opened this issue Jul 29, 2017 · 2 comments
Open

How to parse #66

KINGSABRI opened this issue Jul 29, 2017 · 2 comments

Comments

@KINGSABRI
Copy link

Hello guys
How to parse a docx file, edit and add more paragraphs?

Thanks

@boblail
Copy link
Member

boblail commented Aug 24, 2017

Hey @KINGSABRI, openxml-package supports reading Office Open XML files but since we haven't implemented parsing in openxml-docx yet, the parts it returns will be unparsed XML files. You can scrape them (like you might a web page) using Nokogiri, but you can't yet interact with and manipulate them using the Object Model.

@KINGSABRI
Copy link
Author

Thanks @boblail , I've a report template at work and it's pretty rich of objects and details. parsing it as an xml is really hard.

I've tried to build it from scratch using openxml-docx but it seems even harder.

Currently, I'm using docx gem, to parse and edit the document but it's no longer maintained. So I had to change and fix some bugs and use my fork.

I hope we find a convenient way to do such a task.

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

No branches or pull requests

2 participants