We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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() in PdfController.cs to
GetModel()
PdfController.cs
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", } }; }
Then go to /Pdf/ControllerlessPdfWithLayout.
/Pdf/ControllerlessPdfWithLayout
The text was updated successfully, but these errors were encountered:
Had a quick look and the line that is causing the issue is in AggregateHelper.cs
AggregateHelper.cs
var snippetData = _pdfGeneratorFunc(null, snippet.Model, snippet.View, null, snippet.Margins);
This is pointing to InternalGeneratePdf.
InternalGeneratePdf
Sorry, something went wrong.
WiredUK
No branches or pull requests
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.cs
toThen go to
/Pdf/ControllerlessPdfWithLayout
.The text was updated successfully, but these errors were encountered: