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

Add page break before append document #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gdsoftdev
Copy link

@gdsoftdev gdsoftdev commented Jan 23, 2019

This adds a parameter "add_page_break_before" to function append.
It allows to force a page break before append a document to the current document

It adds an optional argument --pagebreak to the command

if add_page_break_before is true, a page break is added to the current document before append a new document
@groverab
Copy link

Is this included in docxcompose-1.0.2?

When I try to call the following:
composer.append(doc2,"True","True")

I get:
Traceback (most recent call last):
File "mergedoc.py", line 13, in
composer.append(doc2,"True","True")
TypeError: append() takes at most 3 arguments (4 given)

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

Successfully merging this pull request may close these issues.

2 participants