The PDF file format allows you to specify Destination which you can goto by clicking a link or upon certain actions. There locations can even be in other PDF files. As an example, you might have
[12 0 R /Fit]
which takes you to the Page object described by Object 12 0 R and FitsToPage. Pretty neat but a bit cryptic. So you can create an additional structure (a Name tree) which allows you to refer to the page by a label (defined in the Name tree) rather than the object. So you could have TitlePage instead of 12 0 R and the PDf file would lookup title page in the Name tree (and find 12 0 R).
Name trees make the PDF structure more understandable and also easier to maintain and change. Are you using them?
This post is part of our “Understanding the PDF File Format” series. In each article, we aim to take a specific PDF feature and explain it in simple terms. If you wish to learn more about PDF, we have 13 years worth of PDF knowledge and tips, so click here to visit our series index!
Do you need to write or read JPEG in Java?
We have an easy guide on how to write JPEG in Java using ImageIO and JDeli.
You can learn how to read/write most of the image files in ImageIO. However, it gives little control over the process.
JDeli is easy to use and offers complete support, so why not give JDeli a try?