Example usage for com.itextpdf.text.pdf.parser Path Path

List of usage examples for com.itextpdf.text.pdf.parser Path Path

Introduction

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

Prototype

public Path(List<? extends Subpath> subpaths) 

Source Link

Usage

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

License:Open Source License

/**
 * @param fillingRule If the path is contour, pass any value.
 *///from   w  w  w .  ja  v a 2s .  c  o m
private Path filterCurrentPath(Matrix ctm, boolean stroke, int fillingRule, float lineWidth, int lineCapStyle,
        int lineJoinStyle, float miterLimit, LineDashPattern lineDashPattern) {
    Path path = new Path(unfilteredCurrentPath.getSubpaths());

    if (stroke) {
        return filter.filterStrokePath(path, ctm, lineWidth, lineCapStyle, lineJoinStyle, miterLimit,
                lineDashPattern);
    } else {
        return filter.filterFillPath(path, ctm, fillingRule);
    }
}