Skip to main content
Known Participant
December 14, 2022
Question

Epub - fit to page

  • December 14, 2022
  • 2 replies
  • 3778 views

I'm exporting my book as an epub reflowable. How do I get the title and copyright page to take up a full page and fit to size according to whatever device people view the book on? I tried creating the title and copyright page as an image to get around this problem - don't know if this was a good idea? I've attached screenshots from InDesign to show what I'm trying to achieve, and then how they end up looking. Help would be appreciated. Thanks!

This topic has been closed for replies.

2 replies

Randy Hagan
Community Expert
Community Expert
December 14, 2022

If you're asking me for the most effective and efficient way to do this, I'd have to recommend that you scrap the idea of exporting your ePub from the print version and set up a new, dedicated InDesign document for creating your reflowable ePub.

 

I know that's not heartening news, but it'll honestly make your life much easier in the short and long run.

 

When exporting to ePub, InDesign's export filter decides what goes where based on FIFO (First In, First Out) for the entire document layout. So the first thing you put in the reflowable ePub is the first thing that gets exported into the ePub. To provide an extreme example to illustrate the point, if the last thing you do is generate your book's Index and its Table of Contents to wrap up your print version — that's the correct workflow for print — exporting the ePub would export the book content, then the Index, then the the ToC at the very end of the ePub. That works for your Index, of course, but it puts the ToC in the worst, most useless place.

 

So it's worth the effort to 1) outline the exact order of how you want your ePub to be laid out, then 2) follow that outline exactly to lay out the perfect sequence for your ePub. It's buried deep in the help file associated with this link, but the page outlines how that's done and why it's important. Just remember that each text thread, in sequence they're placed, is how your relowable ePub will, well, flow. Each text thread will define a separate unit/chapter/page sequence (you have placed all your graphics in the book as inline graphics, right?) in your final ePub product.

 

There are two easy ways to do this: One is to 1) Create separate InDesign documents for each discrete unit, then 2) load them in the sequence you want through InDesign's Book panel and Export Book to EPUB... from the panel's flyaway menu. The other is to use InDesign's Structure panel to stack the units the way you'd like them to appear in the final ePub. You can learn more about that through this link, bearing in mind that the same things you'd do to facilitate accessible PDFs work the same way to establish reading order in your ePub. Be sure to follow the links at the end of this help page to read the Structure pane overview and Rearrange structured elements links on the bottom of the help page.

 

Some folks here will say that they haven't had rearranging structure work for them with InDesign, but I've done it three times and it's worked fine for me each time. I will say, though, if you're starting from new InDesign document(s) like I suggest, exporting from the Book panel is faster and maybe easier.

 

Hope this helps,

 

Randy

 

 

 

James Gifford—NitroPress
Legend
December 14, 2022

Weellll, I'd disagree. But only if the document set up for print is hopeless in terms of organization.

 

Most docs are set up linearly, with that one text flow. It tends to be the more advanced users who split things up into articles, multiple text flows, separate INDD docs with a Book file, etc.

 

So the basic cleanup of the doc, good for other reasons, would translate fairly directly to a doc that could export to both PDF and EPUB. A small amount of CSS code might be needed to optimize the latter, but if it's a simple book (== novel or other flowing text), maybe not even that.

 

It's my opinion that too many seeking to export to EPUB get lost in the old model of "build a book" from myriad components, like a Lego Millennium Falcon. It does not have to be that way, and with ID as the workbench, should not. If you set up a clean ID file, you can get a clean EPUB with very little effort. (If you have a messy document, you can either clean it up or spend a ton of time "fixing" the EPUB. Choose wisely.)

 

Randy Hagan
Community Expert
Community Expert
December 14, 2022

You certainly can disagree. And respectfully, I'd never stop you.

 

But by my experience, adding edits/insering graphics/putting elements into an InDesign document on the fly/through the review process is the bane of my existence. After time working in assembling catalogs/directories and a number of already printed books, I'd suggest that building that Lego Millenium Falcon, even blindfolded, would be simple by contrast. And certainly if you crack the book with a dedicated ePub editor like Calibre, and have a solid knowledge of HTML/CSS sturcture, most any problem can be fixed.

 

Nonetheless, I stand by my suggestions. It's easier than troubleshooting what's gone wrong with the print version of InDesign document(s). And since the layout of the dedicated InDesign ePub doc can be greatly simplified and doesn't require much of the detail work constructed/de-constructed from the print book — like "Where did all these page numbers in the middle of the text come from?" — I'll stick with what I offered and suggest to the Original Poster that they should feel comfortable with which solution works best for their use case and skill set.

 

Randy

James Gifford—NitroPress
Legend
December 14, 2022

First of all, there are some things you can only "mostly" do in EPUB. As a liquid format dependent on the reader (much like web pages used to be), you have only loose control of how things will display to each user. That is, you have nothing like the control and precision you can get with print layouts.

 

To get a title and subtitle to show on the first page, make each one its own style. Position them as you like on that first page — centered, font size, spacing, etc.

 

Then add a large "below paragraph" spacing to the subtitle, half the page height or more. This will have the effect of forcing a page break — something reflowable EPUB does not quite have, as it doesn't have "pages" at all — and push whatever is next to the second display page.

 

But as for precisely filling the page, or being exactly in the center, or even being a completely predictable space down from the top... some of this can be done using CSS styling, but you can only approximate it from an ID export, and can't achieve all of it.

 

Happy to answer more questions as you work this through.

 

Known Participant
December 14, 2022

I'll have a proper look tomorrow at all the various suggestions and thank you so much! Really appreciated. Back to the football now, as well as it being evening in UK.

James Gifford—NitroPress
Legend
December 14, 2022

Note that I don't disagree with Randy's suggestions — even within ID, there are five ways to do any task and I firmly believe in "the right to do it your own rotten way."

 

But you might want to start by cleaning up the structure of your book, for all the right reasons that will make things like later edits and editions easier, and then work from a 'perfect' InDesign file to EPUB rather than, well, just continuing the hack and slash method for it, too.

 

But that would be my rotten way. 🙂