Examples of PDFBookmark


Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFBookmark

  private String extractBookmarkAsString(final PDFPage pdfPage) {
    StringBuffer result = new StringBuffer();
    for (final Iterator iter = pdfPage.getBookmarks().iterator(); iter
        .hasNext();) {
      final PDFBookmark bookmark = (PDFBookmark) iter.next();
      if (bookmark.getParent() == null)
        extractBookmarkAsString(result, bookmark, "");
    }
    return result.toString();
  }
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFBookmark

    result.append(indentation);
    result.append(bookmark.getTitle());
    result.append("\n");
    for (final Iterator iter = bookmark.getchildren().iterator(); iter
        .hasNext();) {
      final PDFBookmark child = (PDFBookmark) iter.next();
      extractBookmarkAsString(result, child, indentation + "    ");
    }
  }
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFBookmark

    protected void verifyPdf(final PDFPage pdfPage)
    {
      final List bookmarks = pdfPage.getBookmarks();
      final IStringVerifier verifier = getVerifier(getRegex());
      for (Iterator iter = bookmarks.iterator(); iter.hasNext();) {
      final PDFBookmark element = (PDFBookmark) iter.next();
      if (verifier.verifyStrings(getName(), element.getTitle()))
        return; // bookmark found
    }
     
      throw new StepFailedException("No bookmark found with name >" + getName() + "< (regex: " + getRegex() + ")", this);
    }
View Full Code Here

Examples of com.canoo.webtest.plugins.pdftest.htmlunit.PDFBookmark

   */
  public List getAllChildren()
  {
    final List results = new ArrayList();
    for (final Iterator iter = getchildren().iterator(); iter.hasNext();) {
      final PDFBookmark child = (PDFBookmark) iter.next();
      results.add(child);
      results.addAll(child.getAllChildren());
    }
    return results;
  }
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.