iText 7

Introduction iText 7's new add-on pdfHTML is a tool that aims to greatly simplify HTML to PDF conversion in Java or .NET. This is a straightforward and uniform use case, so many users will get satisfactory results with the one-line code sample below. For more complex usage, you may need to provide some configuration to pdfHTML. In this post, I will attempt to explain why you may need to use the config options, and how to use them. Basics The default way to use pdfHTML is either one of two basic one-line code samples: HtmlConverter.convertToPdf(new File("input.html"), new...
pdf2Data
Pdf2Data is a tool that allows for structured data to be extracted from similarly structured text documents. The way that this is done is through the use of rules to define the location of text that should be extracted or the format of the text. Through the rest of this blog post I’ll describe the basics of how it works and then show how it works with a simple example. To begin, let's look at how the rules are defined to choose the text you would like extracted. You can define the areas with either, the pdf2Data web app, or with Adobe reader's comment feature. Once you have selected the area...
While you’re making PDF files and an error occurs, tracing where the problem is can be hard. That’s why we have developed the pdfDebug add-on for iText 7. It allows you to view your PDF file’s internal content structure, content streams and allows you to browse the document in a logical manner – as it is being created. This practical tool is the first of its kind for PDF. What's even better: We're offering the add-on free of charge through the Eclipse Marketplace so you...

Chapter 3: Using renderers and event handlers

In this chapter, we'll find out why it's important to have some understanding of the low-level functionality discussed in the previous chapter. We can use this functionality in combination with basic building blocks to create custom functionality. We'll create custom borders to Cell objects. We'll add background colors to pages, and we'll introduce headers and footers. When we add a watermark, we'll discover that we don't really need to know all the ins and outs of PDF syntax. We'll use a convenience method that takes care of defining the transformation matrix to rotate and center text.

English