pdf2docx icon indicating copy to clipboard operation
pdf2docx copied to clipboard

Add PageBreak after each page final

Open piscesvivian opened this issue 1 year ago • 0 comments

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}')

piscesvivian avatar Oct 15 '24 06:10 piscesvivian