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.
jPDFNotes’ Sound Annotation object produces raw audio through its getContent() method and an AudioFormat object via its getFormat() method. To convert raw audio to any of its supported audio format, you would have to use Java Sound classes for this to happen.
Below is the method to convert the raw audio to a WAV file.
If you want the output returned as an array of bytes (in case you want to convert the WAV to some other format like MP3), you can change the AudioSystem.write() method to use an OutputStream object as the last parameter instead of a File object.