I've been trying to figure out how to flip a pdf for a while, but haven't figured out yet. I've only found how to flip image using Graphics2D:
// Flip the image vertically
AffineTransform tx = AffineTransform.getScaleInstance(1, -1);
tx.translate(0, -image.getHeight(null));
AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
image = op.filter(image, null);
Could you please help me to get it with PDFbox?
Thanks!!