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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CreatePage returns NULL after PDFDocument.Append

Thread ID:





55148 Jan 24,2007 02:06 PM UTC Jan 28,2007 02:39 PM UTC WinForms 3
Tags: PDF
Dick Barney
Asked On January 24, 2007 02:06 PM UTC

A shortened version of code (in C#) is:

IPDFPage newPage;
pdfDoc = PDFDocument.Append(pdfDoc, rptStream);
newPage = pdfDoc.CreatePage();

The pdfDoc.CreatePage returns a NULL that causes an error. The CreatePage works if I don't precede it with an APPEND. (The rptStream comes from Crystal Reports.)

Any ideas on what I am doing wrong?

Dhivya K [Syncfusion]
Replied On January 25, 2007 01:04 PM UTC

Hi Dick,

Thank you for your interest in Essential PDF.

Thanks for the code snippet. I was able to reproduce the issue. Could you please use the following statement for adding a new page to the appended document?

// Adds a new page to the appended document.

Here is a sample for your reference:

Please take a look into it and let me know if you it meets your need.


Dick Barney
Replied On January 26, 2007 01:19 PM UTC

THanks for the reply. I had switched to using memory streams without problems shortly after posting. I still have the old code and should find time to test it next week.

Again.......Thank You for the prompt reponse.

Dhivya K [Syncfusion]
Replied On January 28, 2007 02:39 PM UTC

Hi Dick,

Thank you for the update. Please let me know if you have any queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon