Skip to content

Commit

Permalink
Removed debugging code.
Browse files Browse the repository at this point in the history
  • Loading branch information
arklumpus committed Jun 12, 2024
1 parent f5705e0 commit 673cd6a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions MuPDFCore.MuPDFRenderer/MuPDFCore.MuPDFRenderer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageLicenseExpression>AGPL-3.0-only</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/arklumpus/MuPDFCore</PackageProjectUrl>
<RepositoryUrl>https://github.com/arklumpus/MuPDFCore</RepositoryUrl>
<Version>1.10.0</Version>
<Version>1.10.1</Version>
<PackageIcon>icon.png</PackageIcon>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>../strong_name_key.snk</AssemblyOriginatorKeyFile>
Expand All @@ -25,7 +25,7 @@

<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.5" />
<PackageReference Include="MuPDFCore" Version="1.10.0" />
<PackageReference Include="MuPDFCore" Version="1.10.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion MuPDFCore/MuPDFCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Description>MuPDFCore is a set of multiplatform .NET Core bindings for MuPDF. It can render PDF, XPS, EPUB and other formats to raster images returned either as raw bytes, or as image files in multiple formats (including PNG and PSD). It also supports multithreading.</Description>
<Version>1.10.0</Version>
<Version>1.10.1</Version>
<PackageIcon>icon.png</PackageIcon>
<Authors>Giorgio Bianchini</Authors>
<Company>University of Bristol</Company>
Expand Down
10 changes: 0 additions & 10 deletions MuPDFCore/MuPDFImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,8 @@ public unsafe byte[] GetBytes(PixelFormats pixelFormat)
IntPtr samples = IntPtr.Zero;
int sampleCount = 0;

Console.WriteLine("GetBytes: 0");

ExitCodes result = (ExitCodes)NativeMethods.LoadPixmapRGB(this.NativeContext, this.NativePointer, (int)pixelFormat, ref pixmap, ref samples, ref sampleCount);

Console.WriteLine("GetBytes: 1");

switch (result)
{
case ExitCodes.EXIT_SUCCESS:
Expand All @@ -424,8 +420,6 @@ public unsafe byte[] GetBytes(PixelFormats pixelFormat)

byte[] tbr;

Console.WriteLine("GetBytes: 2");

if (!renderedHasAlpha && (pixelFormat == PixelFormats.RGBA || pixelFormat == PixelFormats.BGRA))
{
tbr = new byte[this.Width * this.Height * 4];
Expand All @@ -449,12 +443,8 @@ public unsafe byte[] GetBytes(PixelFormats pixelFormat)
}
}

Console.WriteLine("GetBytes: 3");

NativeMethods.DisposePixmap(this.NativeContext, pixmap);

Console.WriteLine("GetBytes: 4");

return tbr;
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MuPDFCore" Version="1.10.0" />
<PackageReference Include="MuPDFCore" Version="1.10.1" />
</ItemGroup>

</Project>

0 comments on commit 673cd6a

Please sign in to comment.