After watching David Leedy's video on creating pdfs from xpages using iText - I tried to create a pdf of a form in one of our XPage apps. The form is basically a 2 column table with various data fields - name, address etc. All of the text fields display perfectly but not the date fields. Here is one example where I am trying to display the date of birth of the person (Person_dob) in cell 7 of my table.
var cell7 = new com.itextpdf.text.pdf.PdfPCell(new com.itextpdf.text.Paragraph(currdoc.getItemValueString("Person_dob")));
This displays a blank in the table cell, not the value of the date field; I have tried changing the code and used both getItemValueDate and getItemValue instead of getItemValueString but this crashes the pdf before it even creates. No doubt I am missing something obvious but I just cannot see it.