You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are investigating the issue of high memory consumption in recent versions and it seems that the last nuget package 2024.3.0-rc2 doesn't match with branch https://github.com/QuestPDF/QuestPDF/tree/2024.3.0-rc2 code.
To Reproduce
For example, in class GenerateExtensions there is method GeneratePdf(this IDocument document, Stream stream) which output data to a provided stream directly without copying:
/// <summary>
/// Generates the document in PDF format and outputs it to a provided stream.
/// </summary>
public static void GeneratePdf(this IDocument document, Stream stream)
{
DocumentGenerator.GeneratePdf(stream, document);
}
/// <summary>
/// Generates the document in PDF format and outputs it to a provided stream.
/// </summary>
public static void GeneratePdf(this IDocument document, Stream stream)
{
var data = document.GeneratePdf();
stream.Write(data, 0, data.Length);
}
Expected behavior
Nuget contains actual code.
Screenshots
Nuget package code:
Branch code:
The text was updated successfully, but these errors were encountered:
Describe the bug
We are investigating the issue of high memory consumption in recent versions and it seems that the last nuget package 2024.3.0-rc2 doesn't match with branch https://github.com/QuestPDF/QuestPDF/tree/2024.3.0-rc2 code.
To Reproduce
For example, in class GenerateExtensions there is method
GeneratePdf(this IDocument document, Stream stream)
which output data to a provided stream directly without copying:but in QuestPDF.2024.3.0-rc2.nupkg there is another code:
Expected behavior
Nuget contains actual code.
Screenshots
Nuget package code:
Branch code:
The text was updated successfully, but these errors were encountered: