ciclostile
Fill .docx templates: replace text, insert images and tables, and keep everything else untouched.
Open a Word document, replace placeholders such as {{name}} with
text, an image or a table, and write the result. ciclostile doesn't model
the document: it finds the placeholders in the XML and edits it in
place, so whatever else the template holds - styles, numbering, fields,
comments, tracked changes, embedded objects - comes out as it went in.
That is meant literally: parts that no replacement touches are copied without being re-serialized, and in a part that is edited, every byte of XML the edit doesn't need to change stays as it was.
Ciclostile (/tʃikloˈstiːle/) is Italian for mimeograph.
Quick start
Open the template, fill in its placeholders and write the result. The
fill_template example does the same from
the command line.
use ;
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.