package net.sf.jpluck.test;
import java.io.File;
import net.sf.jpluck.plucker.Document;
import net.sf.jpluck.plucker.TextRecord;
public class BookmarkTest {
public static void main(String[] args) throws Exception {
Document document = new Document("Bookmark Test");
for (int i = 1; i <= 10; i++) {
String uri = "page" + i;
TextRecord page = new TextRecord(uri);
String name = "Page " + i;
page.addParagraph().addFontH1().addText(name).addAnchor("anchor");
document.addBookmark(name, uri + "#anchor");
document.addRecord(page);
}
document.setIncludeURIInfo(true);
document.setHome("page1");
document.write(new File(args[0]));
}
}