View Single Post
Old 07-14-2020, 12:33 PM   #1
andi1235
Member
andi1235 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Nov 2012
Device: none
Question about converting epub to .docx or PDF

Hi all,

I have an epub file that contains references to original print page numbers in the format <span epub:type="pagebreak" role="doc-pagebreak" id="page591" aria-label="591" title="591" class="calibre"></span> (591 being the example page number from this book). I would like a page break added before each original page, when converting to either .docx or PDF.

I tried to set up an Xpath expression to add a page break before each of these span tags. However, my resulting file doesn't end up with any page breaks inserted. The XPath code I used is //h:span[@epub:type="pagebreak"]

I'm not sure if this is a result of an error I'm making in my XPath code, or if this is not how the pagebreak insertion feature is supposed to work, or if there's another problem I'm not aware of. Please help!

I'll attach a couple pages from the epub I've been working with. Thanks in advance!
Attached Files
File Type: epub SAMPLE.epub (8.49 MB, 166 views)
andi1235 is offline   Reply With Quote