Skip to content

Add PageBreak after each page final #321

Open
@piscesvivian

Description

@piscesvivian

If I want a word page number (Now it's able to render right page in Office, but unable to get a page number in API by page_break document part).

Is that right to do like this:

add a page break after each page make finish

            try:
                page.make_docx(docx_file)
                docx_file.add_page_break()
            except Exception as e:
                if not kwargs['debug'] and kwargs['ignore_page_error']:
                    logging.error('Ignore page %d due to making page error: %s', pid, e)
                else:
                    raise MakedocxException(f'Error when make page {pid}: {e}')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions