Fix for Topaz books of no more than two text pages.

This commit is contained in:
Apprentice Harper 2016-04-14 17:35:48 +01:00
parent e2170b4260
commit 24922999dc
3 changed files with 3 additions and 3 deletions

View file

@ -385,7 +385,7 @@ def generateBook(bookDir, raw, fixedimage):
# print "first normal text page is", spage
# 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)
flat_xml = convert2xml.fromData(dict, fname)

View file

@ -385,7 +385,7 @@ def generateBook(bookDir, raw, fixedimage):
# print "first normal text page is", spage
# 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)
flat_xml = convert2xml.fromData(dict, fname)

View file

@ -385,7 +385,7 @@ def generateBook(bookDir, raw, fixedimage):
# print "first normal text page is", spage
# 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)
flat_xml = convert2xml.fromData(dict, fname)