is there an easy way to crop an Image in Itext?
I have the following code:
URL url = new URL(imgUrl);
connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
iStream = connection.getInputStream();
img = new Jpeg(url);
// a method like
// img.crop(x1, y1, x2, y2) would be nice.
Now I want to "delete" a strip of let's say 20 pixels left and 20 pixels right. Is there an easy way to do this?