title: Aspose Pdf : Getting exception for large files
body: <p>I try to save the pdf document but I am getting below Exception.</p>
  
  <p>"Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."</p>
  
  <pre><code>at System.Collections.Generic.List`1.RemoveRange(Int32 index, Int32 count)
  at Aspose.Pdf.Paragraphs.RemoveRange(Int32 index, Int32 count)
  at Aspose.Pdf.Cell.   (Table , Page , Double , Double , Boolean )
  at Aspose.Pdf.Row.Process(Table , Double&amp; , Double&amp; , Boolean , Int32&amp; , Int32&amp; , Double , Double , Page , List`1 )
  at Aspose.Pdf.Table.Process(Double&amp; , Double&amp; , Boolean , Double , Double , Page , Boolean , List`1 )
  at    .   .Process()
  at Aspose.Pdf.FloatingBox.Process(Double&amp; , Double&amp; , Double , Double , MarginInfo , Page , Double , List`1 )
  at    .   .Process()
  at Aspose.Pdf.Page.   (Page )
  at Aspose.Pdf.Page.ProcessParagraphs()
  at Aspose.Pdf.Document.ProcessParagraphs()
  at Aspose.Pdf.Document.Save(Stream output)
  at Aspose.Pdf.Document.Save(String outputFileName)
  </code></pre>
  
  <p>I have 10 list of tables, for 1-5 list it is working fine. But if I giving 6-10 list it is not working and giving above exception.</p>
  
  <p>I have used just normal save only.</p>
  
  <pre><code>doc.save(filepath);
  </code></pre>