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:
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.
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!
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.
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.
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.
Latest posts by Rob (see all)
- What is new in PDF Spec 2.0? - September 13, 2017
- Signal v. Noise – 3 articles you should read - August 16, 2017
- Using JIRA as a bug tracking tool - July 11, 2017
- Why I am excited to be attending Devoxx 2017 - June 27, 2017
- How HTML5 Javadocs in Java 9 will make your life easier - May 25, 2017