remove_blank_pages method

remove_blank_pages()

Removes blank pages from the document.

def remove_blank_pages(self):
    ...

Remarks

The resulting document will not contain pages considered to be blank while other content, including numbering, headers/footers and overall layout should remain unchanged.

Page is considered to be blank when body of the page have no visible content, for example, empty table having no borders will be considered as invisible and therefore page will be detected as blank.

Returns

List of page numbers has been considered as blank and removed.

See Also