Example usage for org.apache.pdfbox.pdmodel PDDestinationNameTreeNode PDDestinationNameTreeNode

List of usage examples for org.apache.pdfbox.pdmodel PDDestinationNameTreeNode PDDestinationNameTreeNode

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel PDDestinationNameTreeNode PDDestinationNameTreeNode.

Prototype

public PDDestinationNameTreeNode() 

Source Link

Document

Constructor.

Usage

From source file:org.pdfsam.pdfbox.component.PDFBoxOutlineUtilsTest.java

License:Open Source License

@Test
public void toPageDestinationDestination() {
    PDPageFitDestination destination = new PDPageFitDestination();
    destination.setPageNumber(5);//from  w w w. j a  v  a  2  s .  c  o m
    PDOutlineItem victim = new PDOutlineItem();
    victim.setDestination(destination);
    assertEquals(5, PDFBoxOutlineUtils.toPageDestination(victim, new PDDestinationNameTreeNode()).get()
            .getPageNumber());
}