We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon