Browse Source

Improved Previewer stability

MarcinZiabek 3 years ago
parent
commit
d894914e7e

+ 2 - 0
QuestPDF.Previewer/CommunicationService.cs

@@ -1,5 +1,6 @@
 using System.Text.Json;
 using System.Text.Json;
 using Microsoft.AspNetCore.Builder;
 using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Hosting;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Http;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.DependencyInjection;
 using Microsoft.Extensions.Logging;
 using Microsoft.Extensions.Logging;
@@ -29,6 +30,7 @@ class CommunicationService
     {
     {
         var builder = WebApplication.CreateBuilder();
         var builder = WebApplication.CreateBuilder();
         builder.Services.AddLogging(x => x.ClearProviders());
         builder.Services.AddLogging(x => x.ClearProviders());
+        builder.WebHost.UseKestrel(options => options.Limits.MaxRequestBodySize = null);
         Application = builder.Build();
         Application = builder.Build();
 
 
         Application.MapGet("ping", HandlePing);
         Application.MapGet("ping", HandlePing);

+ 1 - 1
QuestPDF.Previewer/QuestPDF.Previewer.csproj

@@ -4,7 +4,7 @@
         <Authors>MarcinZiabek</Authors>
         <Authors>MarcinZiabek</Authors>
         <Company>CodeFlint</Company>
         <Company>CodeFlint</Company>
         <PackageId>QuestPDF.Previewer</PackageId>
         <PackageId>QuestPDF.Previewer</PackageId>
-        <Version>2022.5.0</Version>
+        <Version>2022.6.0</Version>
         <PackAsTool>true</PackAsTool>
         <PackAsTool>true</PackAsTool>
         <ToolCommandName>questpdf-previewer</ToolCommandName>
         <ToolCommandName>questpdf-previewer</ToolCommandName>
         <PackageDescription>QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API.</PackageDescription>
         <PackageDescription>QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API.</PackageDescription>

+ 1 - 1
QuestPDF/Previewer/PreviewerService.cs

@@ -94,7 +94,7 @@ namespace QuestPDF.Previewer
 
 
         private void CheckVersionCompatibility(Version version)
         private void CheckVersionCompatibility(Version version)
         {
         {
-            if (version.Major == 2022 && version.Minor == 5)
+            if (version.Major == 2022 && version.Minor == 6)
                 return;
                 return;
             
             
             throw new Exception($"Previewer version is not compatible. Possible solutions: " +
             throw new Exception($"Previewer version is not compatible. Possible solutions: " +

+ 1 - 0
QuestPDF/Resources/ReleaseNotes.txt

@@ -1,2 +1,3 @@
 Implemented support for the text shaping algorithm that fixes rendering more advanced languages such as Arabic. 
 Implemented support for the text shaping algorithm that fixes rendering more advanced languages such as Arabic. 
 Fixed: a rare case when the Row.AutoItem does not calculate properly the width of its content.
 Fixed: a rare case when the Row.AutoItem does not calculate properly the width of its content.
+Fixed: the QuestPDF Previewer does not work with content-rich documents.