View Single Post
Old 08-31-2014, 12:47 PM   #4
kerliza
Member
kerliza began at the beginning.
 
kerliza's Avatar
 
Posts: 24
Karma: 10
Join Date: Oct 2013
Device: none
even page# left /odd page# right

I am not getting the results on subsequent chapters and have come back to the drawing board . . . still need some help, please.

OK, so the code for paginating epub to pdf footer even# pages to the left side and odd# pages to the right side (for publication layout):

<p id="pagenum" style="text-align:left">_PAGENUM_</p><script>if (_PAGENUM_ % 2 == 0) document.getElementById("pagenum").style.textAlign = "right";</script>

How do I get the footer template to recognize the intent of the script below? I have separate chapters to join later and must set a start page other than #1 for each chapter.

<p id="pagenum" style="text-align:left;"></p><script>document.getElementById("pagenum").inner HTML = "" + (_PAGENUM_ + 3)</script>
kerliza is offline   Reply With Quote