瀏覽代碼

Merge branch 'main' into feat-document-operations

Marcin Ziąbek 1 年之前
父節點
當前提交
faa65ae427

+ 2 - 0
.github/workflows/main.yml

@@ -96,6 +96,8 @@ jobs:
 
           dotnet build QuestPDF/QuestPDF.csproj --configuration Release --property WarningLevel=0 --property BUILD_PACKAGE=true
 
+          dotnet build QuestPDF/QuestPDF.csproj --configuration Release --property WarningLevel=0 --property BUILD_PACKAGE=true
+
           TEST_EXECUTION_PATH='QuestPDF.ReportSample/bin/Release/net8.0/${{ matrix.runtime.name }}'
           mkdir -p testOutput/${{ matrix.runtime.name }} 
           cp -r $TEST_EXECUTION_PATH/report.pdf testOutput/${{ matrix.runtime.name }} 

+ 1 - 1
README.md

@@ -56,7 +56,7 @@ Choosing a project dependency could be difficult. We need to ensure stability an
 
 ⭐ Please give this repository a star. It takes seconds and help thousands of developers! ⭐
 
-<img src="https://github.com/user-attachments/assets/32801cf5-e671-4796-bdff-556c66dad9fb" width="700" />
+<img src="https://github.com/user-attachments/assets/9aa3bd4f-a061-42bd-9fe9-0a2ddc48ba1d" width="700" />
 
 
 ## QuestPDF Companion App

+ 1 - 1
Source/QuestPDF/Elements/Text/TextBlock.cs

@@ -526,7 +526,7 @@ namespace QuestPDF.Elements.Text
         
         #region Handling Of Text Blocks With Only With Space
         
-        private ConcurrentDictionary<int, float> ParagraphContainingOnlyWhiteSpaceHeightCache { get; } = new(); // key: TextStyle.Id
+        private static ConcurrentDictionary<int, float> ParagraphContainingOnlyWhiteSpaceHeightCache { get; } = new(); // key: TextStyle.Id
         
         private bool CheckIfContainsOnlyWhiteSpace()
         {

+ 5 - 1
Source/QuestPDF/Infrastructure/SourceCodePath.cs

@@ -22,7 +22,11 @@ internal readonly struct SourceCodePath(StackFrame frame)
         // TODO: revise for dotnet 9
         if (CompanionService.IsDocumentHotReloaded)
             return null;
-
+        
+        #else
+        
+        return null;
+        
         #endif
 
         var stackTrace = new StackTrace(true);

+ 0 - 12
Source/QuestPDF/Resources/ReleaseNotes.txt

@@ -11,15 +11,3 @@ This release introduces several long-awaited features releated to document opera
 These features are built using the qpdf library, available under the "Apache-2.0" license.
 The qpdf library is available at: https://github.com/qpdf/qpdf
 We extend our thanks to the authors of qpdf for their contributions to the open-source community.
-
-
-Version 2024.12.0-rc1
-- Document Operations: improved compatibility with Windows operating systems.
-
-
-Version 2024.12.0-rc2
-- Fixed: The text underline decoration was not rendering correctly.
-
-
-Version 2024.12.0-rc3
-- Fixed: When executing document operation on Windows, escaping file paths does not work as expected.