Rotate A Page In JPDFNotes


JPDFNotes is a Java bean that can be embedded in Java applications and applets to deliver PDF content to your users and allow them to add notes and comments and then save the annotated document.

The JPDFNotes API has a feature that will let you rotate a single page of the PDF file while not affecting the rest. This is through the getMutableDocument().setPageRotation() method of the JPDFNotesBean class. The rotation values can either be 0, 90, 180 or 270.

The sample code below rotates page 6 with an angle of 90 degrees.

1
MyJPDFNotesBean.getMutableDocument().setPageRotation(5, 90);

Found this post useful? Buy me a cup of coffee or help support the sponsors on the right.

Related Posts with Thumbnails

Leave a Reply

Spam protection by WP Captcha-Free