我尝试保存pdf文档,但是我收到了Exception。
“偏移量和长度超出数组的范围或计数大于从索引到源集合末尾的元素数量。”
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& , Double& , Boolean , Int32& , Int32& , Double , Double , Page , List`1 )
at Aspose.Pdf.Table.Process(Double& , Double& , Boolean , Double , Double , Page , Boolean , List`1 )
at . .Process()
at Aspose.Pdf.FloatingBox.Process(Double& , Double& , 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)
我有10个表列表,对于1-5列表它工作正常。但是,如果我给出6-10个列表,它就不起作用并且给出了上述异常。
我只使用普通保存。
doc.save(filepath);