Hi
We are building a PDF from a bunch of single page PDFs using:
mainPdf.Pages.Add(singlePagePdf.pages)
We are linking the PDF to a temp file on disk like so:
using (var fileStream = new FileStream(tempLocalPdfFilename, FileMode.Open, FileAccess.ReadWrite))
{
using (var mainPdf = new Document(fileStream))
{
The memory usage grows and grows and eventually we run out of memory on the 1.5GB instance this runs on, happens for one example around 4000 pages, is there a more memory efficient way to do this or some kind of garbage collection I can call?
Thanks
Simon