// ---------------------------------------------------------------------------
public void Write(Stream stream) {
// step 1
using (Document document = new Document()) {
// step 2
PdfWriter.GetInstance(document, stream);
// step 3
document.Open();
// step 4
BaseFont bf1 = BaseFont.CreateFont(
"c:/windows/fonts/arial.ttf",
BaseFont.CP1252, BaseFont.EMBEDDED
);
Font font1 = new Font(bf1, 12);
document.Add(new Paragraph("Movie title: Moscou, Belgium", font1));
document.Add(new Paragraph(
"directed by Christophe Van Rompaey", font1
));
Chunk chunk = new Chunk(MOVIE, font1);
chunk.SetCharacterSpacing(10);
document.Add(new Paragraph(chunk));
}
}