06-16-2023, 05:04 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2023
Device: none
|
Exporting Epubs -> PDF with page #'s and TOC intact?
Hello!
I've a EPUB file that I know has a intact TOC and page numbers that match the physical copy (If I open the file up in Vitalsource's bookshelf, the page numbers are listed and the TOC works). How do I go converting this epub to a PDF that other people can browse? The issue I'm having is I'd like to share this book as a PDF with other people who may not have a physical version but they can still reference the correct page number as what's listed in the physical book. |
06-17-2023, 04:33 PM | #2 |
Bibliophagist
Posts: 40,595
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Is the book out of copyright or otherwise public domain. If not, you are going to have to look elsewhere for help.
Are the page numbers from a page-map.xml or embedded in the epub navigation document? |
Advert | |
|
06-17-2023, 09:23 PM | #3 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2023
Device: none
|
Quote:
<span role="doc-pagebreak" epub:type="pagebreak" aria-label="**" id="pagebreak_**"/> where ** is the page number. |
|
06-18-2023, 09:53 PM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2023
Device: none
|
I'm able to split the epub in to a file that has a separate XHTML file per page, my question now is how do I convert each XHTML file to fit on one "page" in a pdf?
|
06-19-2023, 12:43 AM | #5 |
Bibliophagist
Posts: 40,595
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You might want to try converting the epub to docx in calibre, then editing the .docx in Word or LO Writer and printing to PDF from there. Unless you are trying to convert a fixed layout ePub3 which is about the only epub format that does 1 page per file. In that case you are pretty much out of luck with any automated conversion process.
Edit: if you see a line like <meta property="rendition:layout">pre-paginated</meta> in the .opf, you are dealing with a fixed layout epub. May I ask the title and author of the book? Last edited by DNSB; 06-19-2023 at 12:46 AM. |
Advert | |
|
06-19-2023, 06:53 AM | #6 |
the rook, bossing Never.
Posts: 12,378
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Or simply Export As PDF in later LO Writer and Word versions, or even Word 2002 with PDF plugin, after Calibre docx or RTF conversion.
|
06-19-2023, 08:21 AM | #7 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Both apps will display page numbers. |
|
06-19-2023, 04:21 PM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2023
Device: none
|
|
06-19-2023, 06:07 PM | #9 |
Bibliophagist
Posts: 40,595
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The xhtml files in a reflowable epub are often a chapter not a page.
|
06-19-2023, 07:16 PM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2023
Device: none
|
I can split the xhtml files in to pages by using calibre to convert from an epub to an epub and setting the "Chapter mark" to none and "Insert page breaks before" to "//h:span[@role="doc-pagebreak"]"
|
06-20-2023, 05:29 AM | #11 | |
the rook, bossing Never.
Posts: 12,378
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Note also different fonts at same "size" are different sizes on the page and even at same line-height may be different width per word. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOC without page numbers for pdf | discdiver | 0 | 11-08-2019 03:30 PM | |
HTML to PDF Conversion TOC position and page number | olimpoweb | Conversion | 4 | 03-14-2018 06:13 PM |
html to pdf, TOC Page# trouble from CSS... | MrBen | Conversion | 5 | 11-19-2014 08:29 AM |
calibre EPUB->PDF: page numbers in printed TOC? | dancal | Conversion | 13 | 06-13-2013 09:32 PM |
Converting to PDF help? Bad page breaks and no TOC produced. | Jokerfwb | Conversion | 6 | 07-24-2012 11:36 PM |