mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2025-10-23 23:07:47 -04:00
Fix for Topaz books of no more than two text pages.
This commit is contained in:
parent
e2170b4260
commit
24922999dc
3 changed files with 3 additions and 3 deletions
|
|
@ -385,7 +385,7 @@ def generateBook(bookDir, raw, fixedimage):
|
||||||
# print "first normal text page is", spage
|
# print "first normal text page is", spage
|
||||||
|
|
||||||
# get page height and width from first text page for use in stylesheet scaling
|
# get page height and width from first text page for use in stylesheet scaling
|
||||||
pname = 'page%04d.dat' % (pnum + 1)
|
pname = 'page%04d.dat' % (pnum - 1)
|
||||||
fname = os.path.join(pageDir,pname)
|
fname = os.path.join(pageDir,pname)
|
||||||
flat_xml = convert2xml.fromData(dict, fname)
|
flat_xml = convert2xml.fromData(dict, fname)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,7 @@ def generateBook(bookDir, raw, fixedimage):
|
||||||
# print "first normal text page is", spage
|
# print "first normal text page is", spage
|
||||||
|
|
||||||
# get page height and width from first text page for use in stylesheet scaling
|
# get page height and width from first text page for use in stylesheet scaling
|
||||||
pname = 'page%04d.dat' % (pnum + 1)
|
pname = 'page%04d.dat' % (pnum - 1)
|
||||||
fname = os.path.join(pageDir,pname)
|
fname = os.path.join(pageDir,pname)
|
||||||
flat_xml = convert2xml.fromData(dict, fname)
|
flat_xml = convert2xml.fromData(dict, fname)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,7 @@ def generateBook(bookDir, raw, fixedimage):
|
||||||
# print "first normal text page is", spage
|
# print "first normal text page is", spage
|
||||||
|
|
||||||
# get page height and width from first text page for use in stylesheet scaling
|
# get page height and width from first text page for use in stylesheet scaling
|
||||||
pname = 'page%04d.dat' % (pnum + 1)
|
pname = 'page%04d.dat' % (pnum - 1)
|
||||||
fname = os.path.join(pageDir,pname)
|
fname = os.path.join(pageDir,pname)
|
||||||
flat_xml = convert2xml.fromData(dict, fname)
|
flat_xml = convert2xml.fromData(dict, fname)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue