Skip to content

Commit 07c9dc3

Browse files
committed
Update PdfPig to latest pre-release
1 parent 471e522 commit 07c9dc3

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

UglyToad.PdfPig.Rendering.Skia.Tests/GitHubIssues.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ public GitHubIssues()
2828
Directory.CreateDirectory(_outputPath);
2929
}
3030

31+
[Fact]
32+
public void IssuePdfPig775()
33+
{
34+
using (var document = PdfDocument.Open(Path.Combine("SpecificTestDocuments", "Shadows.at.Sundown.-.Lvl.11_removed.pdf"), SkiaRenderingParsingOptions.Instance))
35+
{
36+
document.AddSkiaPageFactory();
37+
38+
for (int p = 1; p <= document.NumberOfPages; ++p)
39+
{
40+
using (var fs = new FileStream(Path.Combine(_outputPath, $"Shadows.at.Sundown.-.Lvl.11_removed_{p}.png"), FileMode.Create))
41+
using (var ms = document.GetPageAsPng(p, _scale, RGBColor.White))
42+
{
43+
ms.WriteTo(fs);
44+
}
45+
}
46+
}
47+
}
3148

3249
[Fact]
3350
public void Issue27_1()

UglyToad.PdfPig.Rendering.Skia.Tests/UglyToad.PdfPig.Rendering.Skia.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@
476476
<None Update="SpecificTestDocuments\new.pdf">
477477
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
478478
</None>
479+
<None Update="SpecificTestDocuments\Shadows.at.Sundown.-.Lvl.11_removed.pdf">
480+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
481+
</None>
479482
</ItemGroup>
480483

481484
</Project>

UglyToad.PdfPig.Rendering.Skia/UglyToad.PdfPig.Rendering.Skia.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net462;net471;net6.0;net8.0</TargetFrameworks>
55
<LangVersion>12</LangVersion>
6-
<Version>0.1.11.1-alpha001</Version>
6+
<Version>0.1.11.1-alpha002</Version>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
</PropertyGroup>
99

@@ -41,7 +41,7 @@
4141
</ItemGroup>
4242

4343
<ItemGroup>
44-
<PackageReference Include="PdfPig" Version="0.1.11-alpha-20250330-5fb36" />
44+
<PackageReference Include="PdfPig" Version="0.1.11-alpha-20250330-4fbcc" />
4545
<PackageReference Include="PdfPig.Filters.Dct.JpegLibrary" Version="0.1.10.2" />
4646
<PackageReference Include="PdfPig.Filters.Jbig2.PdfboxJbig2" Version="0.1.10.2" />
4747
<PackageReference Include="PdfPig.Filters.Jpx.OpenJpegDotNet" Version="0.1.10.2" />

0 commit comments

Comments
 (0)