Skip to main content

Posts

Showing posts from April, 2020

Search Text and Add Hyperlink on Top of the Text in PDF in Java

This article demonstrates how to search particular text in a PDF document and add link annotations on top of the text occurrences found in Java. The following example uses Free Spire.PDF for Java library. Dependencies First of all, you need to add needed dependencies for including Free Spire.PDF for Java into your Java project. There are two ways to do that. If you use maven, you need to add the following code to your project’s pom.xml file. <repositories>          <repository>              <id>com.e-iceblue</id>              <name>e-iceblue</name>              <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>          </repository>  </repositories>  <dependencies>      <dependency>          <groupId>e-iceblue</groupId>          <artifactId>spire.pdf.free</artifactId>          <version>2.6.3</version>      </dependency>  </dependencies>  For non-maven

Add Headers and Footers to Word document in Java

  In this blog, you will learn how to add headers and footers in a Word document in Java applications.   Contents Summary:   Add text to header Add image to header Add page numbers to footer The following example uses a free Java API - Free Spire.Doc for Java to achieve the above functionalities.   Add dependencies First of all, you need to add needed dependencies for including Free Spire.Doc for Java into your Java project. There are two ways to do that. If you use maven, you need to add the following code to your project’s pom.xml file.     <repositories>               <repository>                   <id>com.e-iceblue</id>                   <name>e-iceblue</name>                   <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>               </repository>       </repositories>       <dependencies>           <dependency>               <groupId>e-icebl