Recently we found Paul Madary's blog post about digital signatures in a Univeral Application (UWP) with iText 7, and we wanted to share it. Paul gracefully agreed to let us do that, and as a bonus we upgraded the code to be usable out-of-the-box with iText 7.1.3. The only change needed is the method SignDocumentSignature.

A big thank you to our Q3 top contributors!

There are so many people that contribute information to us in order to help improve our code, products and projects. We want to make sure that our top contributors are being recognized for the help they give and that they know how much we appreciate them.

In your example "Nos formules" will be written in Helvetica. You change the font after the Helvetica Chunk with the text "Nos formules" was added to the Phrase. As you didn't add anything else to titreFormules, the font "Comic" is never used.

When you use setFont(), you change the font of the Phrase for all the content that is added after the font was set.

Note that there are no Chunks and Phrases in iText 7. Let me introduce some changes:

Text as an atomic part of text in the sense that all the text inside has the same font family, font size, font color,...

Paragraph is a collection of Text objects and it can contain different 'atoms' of text using different fonts.

I used Courier font, but you can set any font you want. Feel free to create other Text instances with different properties and add them to the Paragraph. If you want an iText for C# example, you'll discover that it is very easy to port the Java to C# as the terminology is identical.

Click this link if you want to see how to answer this question in iText 5.

How to get a font from an array?

Ready to use iText?

As always, if you have any technical questions, you can contact support with your valid support subscription or head over to one of our community support pages on Stack Overflow to see if your question has already been answered for our AGPL users.