• You must be logged in to reply to this topic.Login

Exporting an epub TOC from book: Help

Return to EPUB and eBook

  • Author
    Posts
    • #63334
      BenDavid
      Participant

      Howdy –

      I am looking at exporting a TOC to epub via scripting:

      var parent = new File($.fileName).parent;

      var fName = “TOCSingleDoc.indd”;

      var fPath = parent + “/” + fName;

      var doc = app.open(new File(fPath));

      doc.epubExportPreferences.tocStyleName=”TEST”;

      doc.epubExportPreferences.version = EpubVersion.EPUB2;

      doc.exportFile(ExportFormat.EPUB, new File(parent.absoluteURI + “/” + fName.substring(0, fName.indexOf(“.indd”)) + “.epub”));

      Which works just fine for a single doc – but does not work if I try the same with a book. Can anyone help me unerstand better how to use the Book class with epubExportOption?

      Thanks!

Viewing 0 reply threads
  • The forum ‘EPUB and eBook’ is closed to new topics and replies.
Forum Ads
Best Online Casinos 2026 Your trusted source for expert-reviewed online casinos, exclusive bonuses, and verified real-money payouts. Updated daily.
toprank2u