Skip to content

Commit cb8e7d8

Browse files
author
Ervin Abdijanovic
committed
refactor: update packages and create publish script
1 parent 540e6d3 commit cb8e7d8

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

PdfSharpCore.Test/CreateSimplePDF.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using PdfSharpCore.Test.Helpers;
88
using PdfSharpCore.Utils;
99
using SixLabors.ImageSharp;
10-
using SixLabors.ImageSharp.Formats;
1110
using SixLabors.ImageSharp.PixelFormats;
1211
using SixLabors.ImageSharp.Processing;
1312
using Xunit;

PdfSharpCore.Test/PdfSharpCore.Test.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<PackageReference Include="FluentAssertions" Version="6.12.0" />
1919
<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="13.9.1" />
2020
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
21+
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.8" />
2122
<PackageReference Include="xunit" Version="2.9.0" />
2223
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
2324
<PrivateAssets>all</PrivateAssets>

PdfSharpCore/Pdf.IO/Parser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ public PdfObject ReadObject(PdfObject pdfObject, PdfObjectID objectID, bool incl
192192
break;
193193

194194
// Acrobat 6 Professional proudly presents: The Null object!
195-
// Even with a one-digit object number an indirect reference «x 0 R» to this object is
196-
// one character larger than the direct use of «null». Probable this is the reason why
195+
// Even with a one-digit object number an indirect reference «x 0 R» to this object is
196+
// one character larger than the direct use of «null». Probable this is the reason why
197197
// it is true that Acrobat Web Capture 6.0 creates this object, but obviously never
198198
// creates a reference to it!
199199
case Symbol.Null:
@@ -1301,7 +1301,7 @@ private PdfTrailer ReadXRefStream(PdfCrossReferenceTable xrefTable)
13011301
int prev = xrefStream.Elements.GetInteger(PdfCrossReferenceStream.Keys.Prev);
13021302
PdfArray w = (PdfArray)xrefStream.Elements.GetValue(PdfCrossReferenceStream.Keys.W);
13031303

1304-
// E.g.: W[1 2 1] ¤ Index[7 12] ¤ Size 19
1304+
// E.g.: W[1 2 1] ¤ Index[7 12] ¤ Size 19
13051305

13061306
// Setup subsections.
13071307
int subsectionCount;

PdfSharpCore/PdfSharpCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ PdfSharpCore is a partial port of PdfSharp.Xamarin for .NET Core Additionally Mi
4747
</ItemGroup>
4848
<ItemGroup>
4949
<PackageReference Include="SharpZipLib" Version="1.3.3" />
50-
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.7" />
5150
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta17" />
51+
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.8" />
5252
</ItemGroup>
5353

5454
<ItemGroup>

PdfSharpCore/publish.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rmdir /s /q publish
2+
3+
dotnet publish -c Release -f net6.0 --self-contained false --output publish/
4+
pause

0 commit comments

Comments
 (0)