I've been playing around with this package to see if it's possible to combine multiple word documents with a simple script. It seems like it should be possible given the objects, but I can't find an intuitive way to do this.
Basically, I have a folder with .docx files like 01.docx, 02.docx, 03.docx etc. I'd just like to join these together in a single document as if I had "copy/pasted" each one in succession.
I've tried appending the paragraphs attribute of one to another, but this doesn't seem to work, and add_paragraph only accepts a string, not a Paragraph object. Any idea on the best way to accomplish this?
ps: if this works then I am eternally grateful...this is a pretty nice package for people who are writing a dissertation, but whos advisor won't let them use Latex ;-)
I've been playing around with this package to see if it's possible to combine multiple word documents with a simple script. It seems like it should be possible given the objects, but I can't find an intuitive way to do this.
Basically, I have a folder with
.docxfiles like01.docx,02.docx,03.docxetc. I'd just like to join these together in a single document as if I had "copy/pasted" each one in succession.I've tried appending the
paragraphsattribute of one to another, but this doesn't seem to work, andadd_paragraphonly accepts a string, not aParagraphobject. Any idea on the best way to accomplish this?ps: if this works then I am eternally grateful...this is a pretty nice package for people who are writing a dissertation, but whos advisor won't let them use Latex ;-)