List of usage examples for com.itextpdf.text.pdf.parser Path Path
public Path(List<? extends Subpath> subpaths)
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); } }