When Running the following Code:
Document pdf = new Document(@"spliterror_jan4410.page3.pdf");
pdf.OptimizeResources(new Document.OptimizationOptions()
{
RemoveUnusedStreams = true,
});
On the following file:
I get Error:
: Unable to read beyond the end of the stream.
at .. ( , & )
at . ( , & )
at . (Byte[] , , & )
at .()
at .( , , Boolean , Boolean )
at Aspose.Pdf.OperatorCollection.()
at Aspose.Pdf.OperatorCollection.get_Count()
at Aspose.Pdf.OperatorCollection..MoveNext()
at Aspose.Pdf.Page.(OperatorCollection , Dictionary2 , Resources , ) at Aspose.Pdf.Page.(OperatorCollection , Dictionary
2 , Resources , )
at .(OptimizationOptions )
at Aspose.Pdf.Document.OptimizeResources(OptimizationOptions strategy)