I am using wPDF version 2.7 and need to be able to create large pdf files. However, I am experiencing all kinds of GDI+ corruption once I hit about 4930+ pages. After the exception, all other GDI rendering is flawed and the program eventually crashes. I put the code I was using in a standalone form app and was able to reproduce. I even removed any painting to the canvas. Here is the very simple code to reproduce:
Code
PDFControl pdf = new PDFControl();
pdf.SetLicense("XXX", "XXX", 888);
pdf.FontMode = eFontMode.EmbedTTF;
pdf.BeginDoc(Application.StartupPath + "\\TestPdf.pdf");
for (int i = 0; i < 5000; i++)
{
pdf.StartPage();
pdf.EndPage();
}
pdf.EndDoc();
Alles anzeigen
The license is blanked out in this sample only. Has anyone seen this issue before? Am I missing something? This is a show stopper for me.
Thanks!