After calling of PDDocument document = new PDDocument();
I'm getting the following error:
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Point;
at org.apache.pdfbox.pdmodel.PDDocument.(PDDocument.java:107)
which points to the following code line:
WritableRaster raster = Raster.createBandedRaster(DataBuffer.TYPE_BYTE, 1, 1, 3, new Point(0, 0));
After calling of PDDocument document = new PDDocument(); I'm getting the following error: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Point; at org.apache.pdfbox.pdmodel.PDDocument.(PDDocument.java:107)
which points to the following code line: WritableRaster raster = Raster.createBandedRaster(DataBuffer.TYPE_BYTE, 1, 1, 3, new Point(0, 0));