Back to Blog
We'll look at some other viewer preferences that can be set. In the previous chapter, we changed a viewer preference so that the bookmarks panel is open by default. iText creates a new page automatically when elements don't fit the current page, but what if we want to add a watermark, background, header or footer to every page? How do we know when a new page is created? We'll need to look at the IEventHandler interface to find out. We'll use this final chapter to introduce a couple of concepts that weren't discussed before. We introduced actions and added links and bookmarks that help us navigate through a document. In the previous chapter, we discussed interactivity. We discovered that these elements can be used in a very intuitive way, but also that we can change their default behavior by creating custom renderer implementations –which isn't always trivial, depending on what you want to achieve. In the chapters that followed, we discussed the default behavior of every element: Paragraph, Text, Image, and so on. NET).įigure 7.1: Pages with different orientations If you are looking for a specific version, you can always download these examples from our GitHub repo ( Java/. This Tutorial was written with iText 7.0.x in mind, however, if you go to the linked Examples you will find them for the latest available version of iText.
0 Comments
Read More
Leave a Reply. |