Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 77806

Create a Book with Components and Generate a table of Content file.

$
0
0

Hi everybody.

 

I´m trying to Create a Table of Content from a File. I have following code so far.

 

 

 

var gvBookVar = app.NewNamedBook("tempXXXX.book");
var gvBookComp = gvBookVar.NewSeriesBookComponent(0);

   

gvBookComp.BookComponentType = Constants.FV_BK_NOT_GENERATABLE;
gvBookComp.Name = docName;

   

var gvTocBookComp = gvBookVar.NewSeriesBookComponent (0);

  

gvTocBookComp.BookComponentType = Constants.FV_BK_TOC;
gvTocBookComp.Name = docName+".TOC";

  

var gvExtractList = ["Ueberschrift 1 Seite BildSeite", "Ueberschrift 1", "Ueberschrift 1 mehrzeilig BildSeite"];

   

gvTocBookComp.ExtractTags = gvExtractList;
gvTocBookComp.GenerateInclude = true;
gvTocBookComp.InsertLinks = true;

   

gvBookVar.SimpleGenerate (true, true);

 

 

I am creating a Book tempXXXX.book.

Then i add a Book component with the name of one opened Document, then i create an empty component with the ending toc.

After that i create a ExtractList ( for what to extract)

And use SimpleGenerate for FrameMaker to fill the TOC File. But its not working.

 

And i couldn´t find any tutorials online for this particular problem.

 


Viewing all articles
Browse latest Browse all 77806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>