{
String tiffG3Path = "src/test/resources/org/apache/pdfbox/pdmodel/graphics/image/ccittg3.tif";
String tiffG4Path = "src/test/resources/org/apache/pdfbox/pdmodel/graphics/image/ccittg4.tif";
PDDocument document = new PDDocument();
RandomAccess reader = new RandomAccessFile(new File(tiffG3Path), "r");
PDImageXObject ximage3 = CCITTFactory.createFromRandomAccess(document, reader);
validate(ximage3, 1, 344, 287, "tiff", PDDeviceGray.INSTANCE.getName());
BufferedImage bim3 = ImageIO.read(new File(tiffG3Path));
checkIdent(bim3, ximage3.getOpaqueImage());
PDPage page = new PDPage(PDRectangle.A4);