Exception thrown when appending documents with footer

Hello I tried the following code and got a NullReferenceException: PDFDocument pdfDoc = new PDFDocument(); pdfDoc = PDFDocument.Append(pdfDoc,"sample.pdf"); Syncfusion.Pdf.PDFTemplateArea footer = pdfDoc.Templates.Add( new SizeF( pdfDoc.LastPage.DrawingWidth, 40 ) ); pdfDoc.Templates.Footer = footer; pdfDoc.Save("TestAppend.pdf"); When i remove the footer rows, than the code works. Do you know what is the problem? Thanks Liat

2 Replies

AJ Ajish Syncfusion Team July 12, 2006 10:28 AM UTC

Hi Liat, I was able to see the problem. I have filed a bug report regarding this issue you can track the status of this from the following link. http://www.syncfusion.com/support/issues/pdf/Default.aspx?ToDo=view&questId=2373 Also can you please brief me of the exact requirement, so that I can look into any possible work arround that I can provide you for now. Thanks, Ajish.


LI Liat July 12, 2006 11:40 AM UTC

Hi Ajish The requiremnet is this: I have a pdf document that has a footer, and I would like to append another document (pdf or word). Thanks Liat >Hi Liat, > >I was able to see the problem. I have filed a bug report regarding this issue you can track the status of this from the following link. > >http://www.syncfusion.com/support/issues/pdf/Default.aspx?ToDo=view&questId=2373 > >Also can you please brief me of the exact requirement, so that I can look into any possible work arround that I can provide you for now. > >Thanks, >Ajish.

Loader.
Up arrow icon