In our last post we had seen How to Create Simple PDF using Apache PDFBox. Now in this post we will see steps to add text to PDF using Apache PDFBox. The PDPageContentStream is the class from the P
Create Simple PDF using Apache PDFBox
What is Apache PDFBox? Apache PDFbox is an open source java library used for working with PDF files. We can create new files, modify existing files, read files and do many other manupulations using
Spring MVC Tutorials
Spring MVC is a way of using the Model-View-Controller architecture in Spring. Spring MVC is all about the DispatcherServlet, which acts as a FrontController. DispatcherServlet handles/dispatches a
Using Annotation in Dozer Mapping
Traditional use of Dozer Mapping was done using the XML configurations. But using XML and configuring fields can be a painful job for developers. This also creates code duplication and we need to m
Dozer mapper simple example
Lets see Dozer mapper simple example, where we will map a java object into another using the DozerBeanMapper class. Dozer mapper simple example We will have SourceBean and a DestinationBean. Both o
How to Setup Dozer Mapper
Imagine a POJO that has lot of member variables and you need to map this object into a new java object. For this you will need to manually write setter for the new object taking values from old obj
Exception Chaining in Java
Exception chaining in java allows us to relate one exception to another exception. An application often responds to an exception by throwing another exception. In effect, the first exception causes
Difference between Throw and Throws in Exception Handling
We have seen examples of Throw and Throws in some of our previous posts. Throw and Throws keyword are used in different scenarios while doing exception handling. In this post we see some basic diff
Difference Between HashSet LinkedHashSet and TreeSet
HashSet, LinkedHashSet and TreeSet are all implementations of the Set interface.In this post lets see Difference Between HashSet LinkedHashSet and TreeSet. 1. Implementation All these 3 implement t
TreeSet Example in Java
TreeSet is a NavigableSet implementation based on a TreeMap. Sorting in the TreeSet makes it different from the HashSet. In TreeSet the elements are sorted ascending using their nartural sorting or