class PdfRotator {

    public void rotate(int pageNumber, Rotation rotation) {
        LOG.debug("Applying rotation of {} degrees to page {}", rotation.getDegrees(), pageNumber);
        PDPage page = document.getPage(pageNumber - 1);
        rotate(page, rotation);
    }

    public  PdfRotator(PDDocument document);

}