-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit addes support for net8.0-ios to the library and the MauiApp test. It will only work on the device (no support for iossimulator runtime) MauiApp - added the code to associate the first page image to the Image control
- Loading branch information
Dan Ardelean
committed
Oct 16, 2024
1 parent
d8f9c66
commit 5d04c5a
Showing
12 changed files
with
330 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,108 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<!-- Assembly --> | ||
<PropertyGroup> | ||
<TargetFrameworks>net462;net471;net481;net6.0;net7.0;net8.0;net8.0-android;netstandard2.0</TargetFrameworks> | ||
<AssemblyName>PDFtoImage</AssemblyName> | ||
<RootNamespace>PDFtoImage</RootNamespace> | ||
<EmbedAllSources>true</EmbedAllSources> | ||
<AssemblyOriginatorKeyFile>PDFtoImage.snk</AssemblyOriginatorKeyFile> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<Configurations>Debug;Release;ReleaseSigned</Configurations> | ||
<ProjectGuid>{A6F86FA0-87FE-406E-BA86-5A128D59DA12}</ProjectGuid> | ||
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> | ||
</PropertyGroup> | ||
|
||
<!-- NuGet --> | ||
<PropertyGroup> | ||
<VersionPrefix>4.1.1</VersionPrefix> | ||
<VersionSuffix></VersionSuffix> | ||
<Authors>David Sungaila</Authors> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageIcon>Icon_128.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/sungaila/PDFtoImage</PackageProjectUrl> | ||
<PackageIconUrl>https://raw.githubusercontent.com/sungaila/PDFtoImage/master/etc/Icon_128.png</PackageIconUrl> | ||
<Description>A .NET library to render PDF files into images.</Description> | ||
<PackageReleaseNotes>- Fixed DllNotFoundException for WebAssembly.</PackageReleaseNotes> | ||
<PackageTags>PDF Bitmap Image Convert Conversion C# PDFium SkiaSharp Skia PNG JPG JPEG WEBP Xamarin Android MAUI wasm WebAssembly</PackageTags> | ||
<RepositoryUrl>https://github.com/sungaila/PDFtoImage.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
|
||
<!-- C# compiler --> | ||
<PropertyGroup> | ||
<LangVersion>latest</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<Features>strict</Features> | ||
<WarningsAsErrors>nullable</WarningsAsErrors> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
|
||
<!-- Debug builds --> | ||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<VersionSuffix>debug</VersionSuffix> | ||
</PropertyGroup> | ||
|
||
<!-- Release builds --> | ||
<PropertyGroup Condition="'$(Configuration)'=='Release' or '$(Configuration)'=='ReleaseSigned'"> | ||
<SignAssembly>true</SignAssembly> | ||
<Optimize>true</Optimize> | ||
<Deterministic>true</Deterministic> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
|
||
<!-- Roslyn analyzer for public APIs --> | ||
<ItemGroup> | ||
<AdditionalFiles Include="PublicAPI\$(TargetFramework)\PublicAPI.Shipped.txt" /> | ||
<AdditionalFiles Include="PublicAPI\$(TargetFramework)\PublicAPI.Unshipped.txt" /> | ||
</ItemGroup> | ||
|
||
<!-- NuGet Icon --> | ||
<ItemGroup> | ||
<None Include="..\..\etc\Icon_128.png" Pack="true" PackagePath="" /> | ||
<None Include="..\..\README.md" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
|
||
<!-- SourceLink build steps and NuGet packages --> | ||
<ItemGroup> | ||
<PackageReference Include="SkiaSharp" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<!-- Shared packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'!='net8.0-android'"> | ||
<PackageReference Include="bblanchon.PDFium.Linux" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="bblanchon.PDFium.macOS" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="bblanchon.PDFium.Win32" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.macOS" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Win32" Version="2.88.8" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
|
||
<!-- .NET Framework packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net462'"> | ||
<PackageReference Include="System.ValueTuple" Version="4.5.0" PrivateAssets="all" /> | ||
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
|
||
<!-- .NET packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net6.0' or '$(TargetFramework)'=='net7.0' or '$(TargetFramework)'=='net8.0'"> | ||
<!-- NOP --> | ||
</ItemGroup> | ||
|
||
<!-- Android packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net8.0-android'"> | ||
<PackageReference Include="bblanchon.PDFium.Android" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Android" Version="2.88.8" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
|
||
<!-- Blazor WebAssembly stuff --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net7.0' or '$(TargetFramework)'=='net8.0'"> | ||
<PackageReference Include="SkiaSharp.NativeAssets.WebAssembly" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="Sungaila.PDFium.BlazorWebAssembly" Version="131.0.6728" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
|
||
<Import Project="PDFtoImage.PropertiesSigning.targets" /> | ||
<Import Project="PDFtoImage.CodeSigning.targets" /> | ||
<Import Project="PDFtoImage.PackageSigning.targets" /> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<!-- Assembly --> | ||
<PropertyGroup> | ||
<TargetFrameworks>net462;net471;net481;net6.0;net7.0;net8.0;net8.0-android;netstandard2.0;net8.0-ios</TargetFrameworks> | ||
<AssemblyName>PDFtoImage</AssemblyName> | ||
<RootNamespace>PDFtoImage</RootNamespace> | ||
<EmbedAllSources>true</EmbedAllSources> | ||
<AssemblyOriginatorKeyFile>PDFtoImage.snk</AssemblyOriginatorKeyFile> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<Configurations>Debug;Release;ReleaseSigned</Configurations> | ||
<ProjectGuid>{A6F86FA0-87FE-406E-BA86-5A128D59DA12}</ProjectGuid> | ||
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> | ||
</PropertyGroup> | ||
<!-- NuGet --> | ||
<PropertyGroup> | ||
<VersionPrefix>4.1.3</VersionPrefix> | ||
<VersionSuffix> | ||
</VersionSuffix> | ||
<Authors>David Sungaila</Authors> | ||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageIcon>Icon_128.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/sungaila/PDFtoImage</PackageProjectUrl> | ||
<PackageIconUrl>https://raw.githubusercontent.com/sungaila/PDFtoImage/master/etc/Icon_128.png</PackageIconUrl> | ||
<Description>A .NET library to render PDF files into images.</Description> | ||
<PackageReleaseNotes>- Fixed DllNotFoundException for WebAssembly.</PackageReleaseNotes> | ||
<PackageTags>PDF Bitmap Image Convert Conversion C# PDFium SkiaSharp Skia PNG JPG JPEG WEBP Xamarin Android MAUI wasm WebAssembly</PackageTags> | ||
<RepositoryUrl>https://github.com/sungaila/PDFtoImage.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
<!-- C# compiler --> | ||
<PropertyGroup> | ||
<LangVersion>latest</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<Features>strict</Features> | ||
<WarningsAsErrors>nullable</WarningsAsErrors> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<!-- Debug builds --> | ||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<VersionSuffix>debug</VersionSuffix> | ||
</PropertyGroup> | ||
<!-- Release builds --> | ||
<PropertyGroup Condition="'$(Configuration)'=='Release' or '$(Configuration)'=='ReleaseSigned'"> | ||
<SignAssembly>true</SignAssembly> | ||
<Optimize>true</Optimize> | ||
<Deterministic>true</Deterministic> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
<!-- Roslyn analyzer for public APIs --> | ||
<ItemGroup> | ||
<AdditionalFiles Include="PublicAPI\$(TargetFramework)\PublicAPI.Shipped.txt" /> | ||
<AdditionalFiles Include="PublicAPI\$(TargetFramework)\PublicAPI.Unshipped.txt" /> | ||
</ItemGroup> | ||
<!-- NuGet Icon --> | ||
<ItemGroup> | ||
<None Include="..\..\etc\Icon_128.png" Pack="true" PackagePath="" /> | ||
<None Include="..\..\README.md" Pack="true" PackagePath="" /> | ||
</ItemGroup> | ||
<!-- SourceLink build steps and NuGet packages --> | ||
<ItemGroup> | ||
<PackageReference Include="SkiaSharp" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="all" /> | ||
</ItemGroup> | ||
<!-- Shared packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'!='net8.0-android' and '$(TargetFramework)'!='net8.0-ios' "> | ||
<PackageReference Include="bblanchon.PDFium.Linux" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="bblanchon.PDFium.macOS" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="bblanchon.PDFium.Win32" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.macOS" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Win32" Version="2.88.8" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
<!-- .NET Framework packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net462'"> | ||
<PackageReference Include="System.ValueTuple" Version="4.5.0" PrivateAssets="all" /> | ||
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
<!-- .NET packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net6.0' or '$(TargetFramework)'=='net7.0' or '$(TargetFramework)'=='net8.0'"> | ||
<!-- NOP --> | ||
</ItemGroup> | ||
<!-- Android packages --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net8.0-android'"> | ||
<PackageReference Include="bblanchon.PDFium.Android" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Android" Version="2.88.8" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
<!-- iOS packages --> | ||
<PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'"> | ||
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier> | ||
</PropertyGroup> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net8.0-ios'"> | ||
<PackageReference Include="bblanchon.PDFium.iOS" Version="130.0.6721" PrivateAssets="analyzers" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.iOS" Version="2.88.8" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
<!-- Blazor WebAssembly stuff --> | ||
<ItemGroup Condition="'$(TargetFramework)'=='net7.0' or '$(TargetFramework)'=='net8.0'"> | ||
<PackageReference Include="SkiaSharp.NativeAssets.WebAssembly" Version="2.88.8" PrivateAssets="analyzers" /> | ||
<PackageReference Include="Sungaila.PDFium.BlazorWebAssembly" Version="131.0.6728" PrivateAssets="analyzers" /> | ||
</ItemGroup> | ||
<Import Project="PDFtoImage.PropertiesSigning.targets" /> | ||
<Import Project="PDFtoImage.CodeSigning.targets" /> | ||
<Import Project="PDFtoImage.PackageSigning.targets" /> | ||
</Project> |
Oops, something went wrong.