Examples of Bookmarks


Examples of net.fp.rp.search.back.extractor.util.Bookmarks

            //add the status to the model
            model.put(ModelView.STATUS, message);

            //get the bookmarks list (IE and Mozzila)
            Bookmarks bookmarks = new Bookmarks();
            LinkedList list = bookmarks.getBookmarks();

            for (int i = 0; i < list.size(); i++) {
                final String location = (String) list.get(i);

                //add the information to the system
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Bookmarks

            System.out.println( "Word 95 not supported so far" );
            return;
        }

        HWPFDocument document = (HWPFDocument) _doc;
        Bookmarks bookmarks = document.getBookmarks();
        for ( int b = 0; b < bookmarks.getBookmarksCount(); b++ )
        {
            Bookmark bookmark = bookmarks.getBookmark( b );
            System.out.println( "[" + bookmark.getStart() + "; "
                    + bookmark.getEnd() + "): " + bookmark.getName() );
        }
    }
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Bookmarks

            System.out.println( "Word 95 not supported so far" );
            return;
        }

        HWPFDocument document = (HWPFDocument) _doc;
        Bookmarks bookmarks = document.getBookmarks();
        for ( int b = 0; b < bookmarks.getBookmarksCount(); b++ )
        {
            Bookmark bookmark = bookmarks.getBookmark( b );
            System.out.println( "[" + bookmark.getStart() + "; "
                    + bookmark.getEnd() + "): " + bookmark.getName() );
        }
    }
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Bookmarks

public class TestBookmarksTables extends TestCase
{
    public void test()
    {
        HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "pageref.doc" );
        Bookmarks bookmarks = doc.getBookmarks();

        assertEquals( 1, bookmarks.getBookmarksCount() );

        Bookmark bookmark = bookmarks.getBookmark( 0 );
        assertEquals( "userref", bookmark.getName() );
        assertEquals( 27, bookmark.getStart() );
        assertEquals( 38, bookmark.getEnd() );
    }
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Bookmarks

            System.out.println( "Word 95 not supported so far" );
            return;
        }

        HWPFDocument document = (HWPFDocument) _doc;
        Bookmarks bookmarks = document.getBookmarks();
        for ( int b = 0; b < bookmarks.getBookmarksCount(); b++ )
        {
            Bookmark bookmark = bookmarks.getBookmark( b );
            System.out.println( "[" + bookmark.getStart() + "; "
                    + bookmark.getEnd() + "): " + bookmark.getName() );
        }
    }
View Full Code Here

Examples of org.apache.poi.hwpf.usermodel.Bookmarks

public class TestBookmarksTables extends TestCase
{
    public void test()
    {
        HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "pageref.doc" );
        Bookmarks bookmarks = doc.getBookmarks();

        assertEquals( 1, bookmarks.getBookmarksCount() );

        Bookmark bookmark = bookmarks.getBookmark( 0 );
        assertEquals( "userref", bookmark.getName() );
        assertEquals( 27, bookmark.getStart() );
        assertEquals( 38, bookmark.getEnd() );
    }
View Full Code Here

Examples of org.pdfclown.documents.interaction.navigation.document.Bookmarks

    )
  {
    Pages pages = document.getPages();

    // Bookmarks.
    Bookmarks bookmarks = new Bookmarks(document);
    document.setBookmarks(bookmarks);
    document.setPageMode(PageModeEnum.Bookmarks);
    Page page = pages.get(0);
    Bookmark rootBookmark = new Bookmark(
      document,
      "Creation Sample",
      new LocalDestination(
        page,
        Destination.ModeEnum.Fit,
        null
        )
      );
    bookmarks.add(rootBookmark);
    bookmarks = rootBookmark.getBookmarks();
    page = pages.get(1);
    Bookmark bookmark = new Bookmark(
      document,
      "2nd page (close-up view)",
      new LocalDestination(
        page,
        Destination.ModeEnum.XYZ,
        new Float[]{0f,250f,2f}
        )
      );
    bookmarks.add(bookmark);
    bookmark.getBookmarks().add(
      new Bookmark(
        document,
        "2nd page (mid view)",
        new LocalDestination(
          page,
          Destination.ModeEnum.XYZ,
          new Float[]{0f,(float)page.getSize().getHeight() - 250,1f}
          )
        )
      );
    page = pages.get(2);
    bookmarks.add(
      new Bookmark(
        document,
        "3rd page (fit horizontal view)",
        new LocalDestination(
          page,
          Destination.ModeEnum.FitHorizontal,
          new Float[]{0f}
          )
        )
      );
    try
    {
      bookmarks.add(
        bookmark = new Bookmark(
          document,
          "PDF Clown Home Page",
          new GoToURI(document, new URI("http://www.pdfclown.org"))
          )
View Full Code Here

Examples of org.pdfclown.documents.interaction.navigation.document.Bookmarks

  {
    PdfDirectObject bookmarksObject = getBaseDataObject().get(PdfName.Outlines);
    if(bookmarksObject == null)
      return null;

    return new Bookmarks(bookmarksObject);
  }
View Full Code Here

Examples of org.pdfclown.documents.interaction.navigation.document.Bookmarks

    {throw new RuntimeException(filePath + " file access error.",e);}

    Document document = file.getDocument();

    // 2. Get the bookmarks collection!
    Bookmarks bookmarks = document.getBookmarks();
    if(bookmarks == null)
    {System.out.println("\nNo bookmark available (Outline dictionary not found).");}
    else
    {
      System.out.println("\nIterating through the bookmarks collection (please wait)...\n");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.