Hello, i have a question:
i write one pdf with about 15.000 pages, but after about 10000 i receive a OutMemoryException. Then i decide to write one pdf with a stream every pages :
_document.Save(stream, false); using (FileStream file = new FileStream(Path.Combine(_tmp_path, "Prova.pdf"), FileMode.Append)) { file.Write(stream.ToArray(),0, stream.ToArray().Length); }
But if i open a pdf create, i view the last pages inserted, and not all; this because where i save the document the pdfsharp insert a EOF command. Can i write a pdf correctly?
Thanks.
|