Example usage for com.itextpdf.text.pdf.parser.clipper PolyTree getFirst

List of usage examples for com.itextpdf.text.pdf.parser.clipper PolyTree getFirst

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf.parser.clipper PolyTree getFirst.

Prototype

public PolyNode getFirst() 

Source Link

Usage

From source file:mkl.testarea.itext5.pdfcleanup.PdfCleanUpRegionFilter.java

License:Open Source License

private static Path convertToPath(PolyTree result) {
    Path path = new Path();
    PolyNode node = result.getFirst();

    while (node != null) {
        addContour(path, node.getContour(), !node.isOpen());
        node = node.getNext();/*from  ww  w .j  a v  a 2  s  . c om*/
    }

    return path;
}