File size limitation in PDF

I ma using ofBeginSaveScreenAsPDF
to generate several hundred thousands of lines

When the output file size exceeds 10 Mbytes, it creates an empty file of 1k. What do I need to overcome this 10Mbyte limitation, i need output pdf size overr 100 Mbytes. I changes stack size but that does not solve the problem.