Just downloaded and installed. Running on local machine (localhost), running your Hello World example:
Export.CreatePDF(int.Parse(RentalPropertyId), Response);
PDFDocument pdfDoc = new PDFDocument();
IPDFFont pdfFont = pdfDoc.Fonts.Add(FontBaseFamily.TimesRoman);
IPDFPage firstPage = pdfDoc.Pages[0];
firstPage.Graphics.DrawText(0, 0, "Hello World!", pdfFont);
pdfDoc.Save("Sample.pdf", Response, HttpReadType.Save);
The file is corrupt. Adobe Reader v7.0 reports:
"The file is damaged and cannot be repaired."
Please advise. Thank you.
Sample70.zip