Skip to content

Commit b2dafad

Browse files
committed
Document preserving styles option
1 parent 0be4be4 commit b2dafad

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ request to the web service and you will get back the composed document. Example
5151
$ curl -F "first=@first.docx" -F "second=@second.docx" -o composed.docx http://localhost:8080/
5252
5353
54+
Options
55+
-------
56+
57+
Preserving styles
58+
~~~~~~~~~~~~~~~~~
59+
60+
By default docxcompose tries to apply styles from the first document to the
61+
appended documents. This should ensure a consistent appearance throughout the
62+
composed document.
63+
64+
With the ``preserve-styles`` option, it's possible to change this behavior to
65+
keep the styles of the appended documents.
66+
67+
The option can be given through the command line (``--preserve-styles``),
68+
via the web service url using an url parameter (``preserve_styles=1``) or using
69+
Python ``Composer(preserve_styles=True)``.
70+
71+
5472
Installation for development
5573
----------------------------
5674

0 commit comments

Comments
 (0)