Annotations Creation and Editing in JPedal 7 Java PDF Library SDK

In the latest version of the JPedal Java PDF Library, we implemented new features allowing you to create and edit annotations on your PDF files. Here’s a quick summary of what we’ve been up to:

Creating annotations

We’ve added a new tab to the sidebar, labelled “Annotations”. From here, you can select a variety of annotation types to add to your PDF. Most require a simple click and drag/move, but each button has a helpful tool-tip if you’re unsure on what to do.

The new Annotations sidebar

The new Annotations sidebar, with Polyline selected

After selecting an annotation type, the cursor will change to a crosshair when you move your mouse over the page (or if using the highlight tool, an I-cursor when over un-highlighted text). You’re now free to start drawing!

Editing annotations

To select an existing annotation, simply left click anywhere over it. You’ll know if it’s selected – there will now be a fancy border around it and tabs around the edges for resizing the annotation.

A selected annotation

A selected annotation

To move annotations, simply click and hold anywhere on one, then drag it wherever you please on the page. Additionally, resizing is just as easy – click and drag one of the tabs around the edge of the annotation.

For more in-depth customisation, right-clicking an annotation will open a context menu from which you can select “properties”. This will open the properties window, where you can edit the line width, line colour and fill colour (where these options are supported) to your heart’s content – just click on an option to change it.

The properties panel

The properties window. Click on the coloured box to open the colour selection window

The colour selection window

The colour selection window

The properties panel, with the new colours

The properties window, with the new colours. Click OK and you’re all done!

The annotation with the updated properties

The annotation with the updated properties

Of course, we aren’t stopping here – we already have plans to add more annotation types and features in the near future.

Is there anything you’d like to see in the next annotations update? Let us know in the comments below.

If you’re a first-time reader, or simply want to be notified when we post new articles and updates, you can keep up to date by social media (TwitterFacebook and Google+) or the  Blog RSS.

Related Posts:

The following two tabs change content below.

Rob

Java Developer / Support at IDRSolutions
Rob is a developer at IDRSolutions, currently working on JPedal. In his spare time he enjoys riding his motorcycle, playing guitar and studying languages that don't require a semicolon at the end of each line (Japanese, Ruby and Chef at the moment).
Rob

About Rob

Rob is a developer at IDRSolutions, currently working on JPedal. In his spare time he enjoys riding his motorcycle, playing guitar and studying languages that don't require a semicolon at the end of each line (Japanese, Ruby and Chef at the moment).

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>