7.1.2.4. BookPage

class BookBrowser.Book.BookPage.BookPage(book, filename)[source]

Bases: object

__init__(book, filename)[source]

Initialize self. See help(type(self)) for accurate signature.

__int__()[source]
__lt__(other)[source]

Sort by page number or index

__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

_load_dual_image(reload=False)[source]
_load_image(reload=False)[source]
_logger = <Logger BookBrowser.Book.BookPage.BookPage (WARNING)>
_parse_filename()[source]
book
compare_histogram(other)[source]
dual_image
extension
file_index
filename
flip(orientation=None)[source]
flip_image()[source]
get_histogram()[source]
guess_orientation(height=100, c_inf=0, c_sup=400)[source]
image
is_empty
is_recto
is_verso
mtime
orientation
page_number
path
release_image()[source]
rename(file_index=None, page_number=None, orientation=None, suffix='', dry_run=False)[source]
title
to_text(language, fake=False)[source]
class BookBrowser.Book.BookPage.EmptyBookPage(page_number)[source]

Bases: object

__init__(page_number)[source]

Initialize self. See help(type(self)) for accurate signature.

__int__()[source]
is_empty
orientation
page_number