Source not recognized in PDF generation

3

I'm using the ITextSharp library to create PDF's and I'm having problems with the source of the document, I have the error "Font is an ambiguous", I've looked in several places and all the examples end up giving the same error, fix this or do you have library documentation for me to use?

Example of the code I'm using and getting the error I said.

Paragraph p = new Paragraph(aluno.Nome, new Font(Font.Bold, 14));
    
asked by anonymous 11.06.2016 / 20:47

1 answer

3

Only the font name is missing, which can solve at least this problem in the code:

var font = FontFactory.GetFont("Arial", 14, Font.Bold);
var p = new Paragraph(aluno.Nome, font);

You can view library documents in Github . You also have class documentation .

    
11.06.2016 / 21:04