hresult = 0x80004003
message = ocome ссылка не установлен на экземпляр объекта.
source=itext.kernel
Stacktrace:
at itext.kernel.pdf.pdfdictionary.get (ключ pdfname, логический aSdirect) < /p>
объяснение
Ошибка бросала, пока делая < /p>
Код: Выделить всё
document.ShowTextAligned(header, x, y, i, TextAlignment.CENTER, VerticalAlignment.BOTTOM, 0);
< /code>
Заголовок: < /p>
Paragraph header = new Paragraph("ABCD inc." )
.SetFont(PdfFontFactory.CreateFont(StandardFonts.HELVETICA))
.SetFontSize(8);
Подробнее здесь: https://stackoverflow.com/questions/794 ... extaligned