Package com.aspose.words

Examples of com.aspose.words.Bookmark


    builder.startBookmark("AsposeBookmark");
    builder.writeln("Text inside a bookmark.");
    builder.endBookmark("AsposeBookmark");
   
    // By index.
    Bookmark bookmark1 = doc.getRange().getBookmarks().get(0);
   
    // By name.
    Bookmark bookmark2 = doc.getRange().getBookmarks().get("AsposeBookmark");
   
    doc.save("data/docx4j/Aspose_Bookmark.doc", SaveFormat.DOC);
    System.out.println("Done.");
  }
View Full Code Here


  public static void main(String[] args) throws Exception
  {
    Document doc = new Document("data/docx4j/Aspose_Bookmark.doc");

    // By name.
    Bookmark bookmark = doc.getRange().getBookmarks().get("AsposeBookmark");
    bookmark.remove();
   
    doc.save("data/docx4j/Aspose_BookmarkDeleted.doc", SaveFormat.DOC);
    System.out.println("Done.");
  }
View Full Code Here

    builder.startBookmark("AsposeBookmark");
    builder.writeln("Text inside a bookmark.");
    builder.endBookmark("AsposeBookmark");
   
    // By index.
    Bookmark bookmark1 = doc.getRange().getBookmarks().get(0);

    // By name.
    Bookmark bookmark2 = doc.getRange().getBookmarks().get("AsposeBookmark");
   
    doc.save("data/AsposebBookmark.doc", SaveFormat.DOC);
  }
View Full Code Here

TOP

Related Classes of com.aspose.words.Bookmark

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.