Hello,
I have to write a program which will create a PDF file consisting of a large number of jpeg files. When the program is running, I get an out of memory exception. Is there any way of creating the PDF so it is written to a file as it is being created, rather than building up a PDF in memory and then saving the file at then end?
Many thanks
Scott
Pseudo code:
Pdf pdf1 = new Pdf();
pdf1.IsBuffered = false; // ??? Not sure how to apply this property?
for (int nI = 0; nI < 100; ++nI) // < 100 works for my test image < 200 fails
{
CreateImage(pdf1); // create the section and add the image to the section ie 1image per per page
}
pdf1.Save(@"C:\test.pdf");