A well-structured Word document often contains headings, when converting such Word document to PDF, you may want to preserve the headings in the Word document as bookmarks in the result PDF document. In this article, I will show you how to convert a Word document to PDF and keep headings as bookmarks programmatically in Java using Spire.Doc for Java library. Add Dependencies There are two ways to include Spire.Doc for Java in your Java project. For maven projects, add the following dependencies to your project’s pom.xml file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <repositories> <repository> <id>com.e-iceblue</id> <name>e-iceblue</name> <url>http: //repo.e-iceblue.com/nexus/content/groups/public/</url...
A blog about Microsoft Office and PDF document development using .NET and Java.