I have found a bug with multipage documents that contain snippets. Once you go over one page you then get the error:
private DemonstrationModel GetModel()
{
return new DemonstrationModel
{
People = new List<string> { "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", }
};
}
I have found a bug with multipage documents that contain snippets. Once you go over one page you then get the error:
Cannot access a closed Stream.
To reproduce this change
GetModel()inPdfController.cstoThen go to
/Pdf/ControllerlessPdfWithLayout.