Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Merlijn Wajer
Python Derivermodule
Commits
4a1615bb
Commit
4a1615bb
authored
Dec 14, 2020
by
Derek Fukumori
Browse files
scandata: implement scandata_get_page_count function
parent
db6e6d9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
derivermodule/scandata.py
View file @
4a1615bb
...
...
@@ -64,6 +64,13 @@ def scandata_parse(scandata_path):
return
scandata
def
scandata_get_page_count
(
scandata
):
"""
Return the number of page elements in a parsed scandata object
"""
return
len
(
scandata
.
get
(
'book'
,
{}).
get
(
'pageData'
,
{}).
get
(
'page'
,
[]))
def
scandata_get_skip_pages
(
scandata
):
"""
Returns a list of indexes of pages in scandata.xml that have
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment