LineInfo objects are not cleared when there are tables in the document being exported to PDF which leads to OutOfMemoryException.