background preloader

Passage en pdf avec itext

Facebook Twitter

iText in Action: example part4.chapter16.FestivalCalendar1. Part4.chapter16.FestivalCalendar1 If you compile and execute this example, you'll get the following result: festival_calendar1.pdf You can download the full source code of FestivalCalendar1, or read it here: /* * This class is part of the book "iText in Action - 2nd Edition" * written by Bruno Lowagie (ISBN: 9781935182610) * For more info, go to: * This example only works with the AGPL version of iText.

iText in Action: example part4.chapter16.FestivalCalendar1

The FestivalCalendar1 example is part of the book iText in Action (ISBN 9781935182610). Specifying font in text objects added to an IText PDF document. You can specify fonts for most text objects (Chunk, Phrase, Paragraph etc.) in IText.

Specifying font in text objects added to an IText PDF document.

Actually, you can do a lot with fonts in IText. Too much to cover here, so I'll just cover the basics. Get the book "IText in Action" to get the full story on fonts. To use a font you must first create the font. Then you pass it to the text object in it's constructor.

Code barres

Exemples de création de documents. View topic - Export a chart to excel / pdf ?