diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 0a55286..136ed9a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -12,7 +12,7 @@ body: attributes: label: PDFtoZPL version description: Which version of PDFtoZPL is affected? - value: 5.3.1 + value: 6.0.0 validations: required: true - type: dropdown diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5e2e4c3..6a99f86 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -60,10 +60,13 @@ jobs: with: dotnet-version: | 6.x - 7.x 8.x + 9.x + dotnet-quality: 'ga' - name: Setup .NET workload maui-android run: dotnet workload install maui-android + - name: Setup .NET workload maui-ios + run: dotnet workload install maui-ios - name: Setup .NET workload wasm-tools run: dotnet workload install wasm-tools - name: Restore @@ -73,6 +76,7 @@ jobs: - name: Pack run: dotnet pack PDFtoZPL/PDFtoZPL.csproj -c ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} -p:VersionSuffix=ci --no-restore - name: Generate artifact attestation + if: github.repository == 'sungaila/PDFtoImage' && github.ref == 'refs/heads/master' uses: actions/attest-build-provenance@main with: subject-path: PDFtoZPL/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/*.nupkg @@ -108,7 +112,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2019, windows-2022, ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, macos-14] + os: [windows-2019, windows-2022, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-12, macos-13, macos-14, macos-15] runs-on: ${{ matrix.os }} if: success() && (github.event_name != 'workflow_dispatch' && true || inputs.run_tests) == true steps: @@ -117,9 +121,11 @@ jobs: with: dotnet-version: | 6.x - 7.x 8.x + 9.x + dotnet-quality: 'ga' - name: Download test assemblies + if: (success() || failure()) uses: actions/download-artifact@main with: name: Test assemblies @@ -135,12 +141,12 @@ jobs: - name: .NET 6 if: success() || failure() run: dotnet test net6.0/*.Tests.dll --logger trx --verbosity detailed - - name: .NET 7 - if: success() || failure() - run: dotnet test net7.0/*.Tests.dll --logger trx --verbosity detailed - name: .NET 8 if: success() || failure() run: dotnet test net8.0/*.Tests.dll --logger trx --verbosity detailed + - name: .NET 9 + if: success() || failure() + run: dotnet test net9.0/*.Tests.dll --logger trx --verbosity detailed - name: Upload test results if: success() || failure() uses: actions/upload-artifact@main @@ -199,14 +205,15 @@ jobs: with: dotnet-version: | 6.x - 7.x 8.x + 9.x + dotnet-quality: 'ga' - name: Setup .NET workload maui-android run: dotnet workload install maui-android + - name: Setup .NET workload maui-ios + run: dotnet workload install maui-ios - name: Setup dotnet-coverage run: dotnet tool install --global dotnet-coverage - - name: Setup .NET workload android - run: dotnet workload install android - name: Setup JDK 17 uses: actions/setup-java@main with: diff --git a/.github/workflows/githubpages.yml b/.github/workflows/githubpages.yml index a333bc2..f730bf1 100644 --- a/.github/workflows/githubpages.yml +++ b/.github/workflows/githubpages.yml @@ -11,7 +11,7 @@ on: jobs: publish: name: Publish - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@main @@ -20,9 +20,12 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@main with: - dotnet-version: 8.x + dotnet-version: 9.x + dotnet-quality: 'ga' - name: Setup .NET workload maui-android run: dotnet workload install maui-android + - name: Setup .NET workload maui-ios + run: dotnet workload install maui-ios - name: Setup .NET workload wasm-tools run: dotnet workload install wasm-tools - name: Update relative paths @@ -38,9 +41,9 @@ jobs: - name: Publish run: dotnet publish WebConverter/WebConverter.csproj -c Release -p:PublishProfile=WebConverter/Properties/PublishProfiles/PublishSite.pubxml -p:VersionSuffix=ci --no-restore - name: Create .nojekyll file - run: touch WebConverter/bin/Release/net8.0/publish/wwwroot/.nojekyll + run: touch WebConverter/bin/Release/net9.0/publish/wwwroot/.nojekyll - name: Update service-worker-assets.js hashes - working-directory: WebConverter/bin/Release/net8.0/publish/wwwroot + working-directory: WebConverter/bin/Release/net9.0/publish/wwwroot if: false run: | jsFile=$( - net462;net481;net6.0;net7.0;net8.0 + net462;net481;net6.0;net8.0;net9.0 Exe PDFtoZPL.Console PDFtoZPL.Console PDFtoZPL.Console.Program - 5.3.1 + 6.0.0 Debug;Release;ReleaseSigned diff --git a/Console/Properties/PublishProfiles/DotNet.pubxml b/Console/Properties/PublishProfiles/DotNet.pubxml index 0e980ad..d372325 100644 --- a/Console/Properties/PublishProfiles/DotNet.pubxml +++ b/Console/Properties/PublishProfiles/DotNet.pubxml @@ -6,9 +6,9 @@ https://go.microsoft.com/fwlink/?LinkID=208121. ReleaseSigned Any CPU - bin\Publish\net8.0\ + bin\Publish\net9.0\ FileSystem - net8.0 + net9.0 false \ No newline at end of file diff --git a/PDFtoZPL/Conversion.Deprecated.cs b/PDFtoZPL/Conversion.Deprecated.cs index cb01e99..ebb464a 100644 --- a/PDFtoZPL/Conversion.Deprecated.cs +++ b/PDFtoZPL/Conversion.Deprecated.cs @@ -26,6 +26,7 @@ public static partial class Conversion [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] [Obsolete("This method is deprecated and will be removed in a future release. Use SaveJpeg with a System.Index instead.")] #endif @@ -50,6 +51,7 @@ public static string ConvertPdfPage(string pdfAsBase64String, string? password = [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] [Obsolete("This method is deprecated and will be removed in a future release. Use SaveJpeg with a System.Index instead.")] #endif @@ -78,6 +80,7 @@ public static string ConvertPdfPage(byte[] pdfAsByteArray, string? password = nu [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] [Obsolete("This method is deprecated and will be removed in a future release. Use SaveJpeg with a System.Index instead.")] #endif diff --git a/PDFtoZPL/Conversion.cs b/PDFtoZPL/Conversion.cs index bf771d0..509ec43 100644 --- a/PDFtoZPL/Conversion.cs +++ b/PDFtoZPL/Conversion.cs @@ -31,6 +31,7 @@ public static partial class Conversion [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] public static string ConvertPdfPage(string pdfAsBase64String, Index page, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default) { @@ -52,6 +53,7 @@ public static string ConvertPdfPage(string pdfAsBase64String, Index page, string [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] public static string ConvertPdfPage(byte[] pdfAsByteArray, Index page, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default) { @@ -77,6 +79,7 @@ public static string ConvertPdfPage(byte[] pdfAsByteArray, Index page, string? p [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] public static string ConvertPdfPage(Stream pdfStream, Index page, bool leaveOpen = false, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default) { @@ -106,6 +109,7 @@ public static string ConvertPdfPage(Stream pdfStream, Index page, bool leaveOpen [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] #endif public static IEnumerable ConvertPdf(string pdfAsBase64String, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default) @@ -131,6 +135,7 @@ public static IEnumerable ConvertPdf(string pdfAsBase64String, string? p [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] #endif public static IEnumerable ConvertPdf(byte[] pdfAsByteArray, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default) @@ -160,6 +165,7 @@ public static IEnumerable ConvertPdf(byte[] pdfAsByteArray, string? pass [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] #endif public static IEnumerable ConvertPdf(Stream pdfStream, bool leaveOpen = false, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default) @@ -192,6 +198,7 @@ public static IEnumerable ConvertPdf(Stream pdfStream, bool leaveOpen = [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] #endif public static async IAsyncEnumerable ConvertPdfAsync(string pdfAsBase64String, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default, [EnumeratorCancellation] CancellationToken cancellationToken = default) @@ -218,6 +225,7 @@ public static async IAsyncEnumerable ConvertPdfAsync(string pdfAsBase64S [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] #endif public static async IAsyncEnumerable ConvertPdfAsync(byte[] pdfAsByteArray, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default, [EnumeratorCancellation] CancellationToken cancellationToken = default) @@ -248,6 +256,7 @@ public static async IAsyncEnumerable ConvertPdfAsync(byte[] pdfAsByteArr [SupportedOSPlatform("Windows")] [SupportedOSPlatform("Linux")] [SupportedOSPlatform("macOS")] + [SupportedOSPlatform("iOS13.6")] [SupportedOSPlatform("Android31.0")] #endif public static async IAsyncEnumerable ConvertPdfAsync(Stream pdfStream, bool leaveOpen = false, string? password = null, PdfOptions pdfOptions = default, ZplOptions zplOptions = default, [EnumeratorCancellation] CancellationToken cancellationToken = default) diff --git a/PDFtoZPL/PDFtoZPL.csproj b/PDFtoZPL/PDFtoZPL.csproj index e3f9335..201bc96 100644 --- a/PDFtoZPL/PDFtoZPL.csproj +++ b/PDFtoZPL/PDFtoZPL.csproj @@ -1,7 +1,7 @@  - net462;net471;net481;net6.0;net7.0;net8.0;net8.0-android;netstandard2.0 + net462;net471;net481;net6.0;net8.0;net8.0-android;net8.0-ios;net9.0;net9.0-android;net9.0-ios;netstandard2.0 PDFtoZPL PDFtoZPL true @@ -12,8 +12,8 @@ - 5.3.1 - + 6.0.0 + preview David Sungaila false MIT @@ -21,7 +21,10 @@ https://github.com/sungaila/PDFtoZPL https://raw.githubusercontent.com/sungaila/PDFtoZPL/master/Icon_128.png A .NET library to convert PDF files (and bitmaps) into Zebra Programming Language code. - - Fixed DllNotFoundException for WebAssembly. + - Add .NET 9 as TargetFramework. +- Add iOS as TargetFramework. +- Remove .NET 7 as TargetFramework. +- Remove MonoAndroid/Xamarin as TargetFramework. PDF ZPL Zebra Bitmap Convert Conversion C# PDFium MAUI wasm WebAssembly https://github.com/sungaila/PDFtoZPL.git git @@ -66,7 +69,7 @@ - + diff --git a/PDFtoZPL/PublicAPI/net7.0/PublicAPI.Shipped.txt b/PDFtoZPL/PublicAPI/net8.0-iOS/PublicAPI.Shipped.txt similarity index 100% rename from PDFtoZPL/PublicAPI/net7.0/PublicAPI.Shipped.txt rename to PDFtoZPL/PublicAPI/net8.0-iOS/PublicAPI.Shipped.txt diff --git a/PDFtoZPL/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/PDFtoZPL/PublicAPI/net8.0-iOS/PublicAPI.Unshipped.txt similarity index 100% rename from PDFtoZPL/PublicAPI/net7.0/PublicAPI.Unshipped.txt rename to PDFtoZPL/PublicAPI/net8.0-iOS/PublicAPI.Unshipped.txt diff --git a/PDFtoZPL/PublicAPI/net9.0-android/PublicAPI.Shipped.txt b/PDFtoZPL/PublicAPI/net9.0-android/PublicAPI.Shipped.txt new file mode 100644 index 0000000..66cd457 --- /dev/null +++ b/PDFtoZPL/PublicAPI/net9.0-android/PublicAPI.Shipped.txt @@ -0,0 +1,91 @@ +#nullable enable +PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Base64 = 2 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Base64Compressed = 3 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Hexadecimal = 0 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.HexadecimalCompressed = 1 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.Conversion +PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.Atkinson = 2 -> PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.FloydSteinberg = 1 -> PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.None = 0 -> PDFtoZPL.DitheringKind +PDFtoZPL.ZplOptions +PDFtoZPL.ZplOptions.ZplOptions() -> void +PDFtoZPL.ZplOptions.ZplOptions(PDFtoZPL.BitmapEncodingKind EncodingKind = PDFtoZPL.BitmapEncodingKind.HexadecimalCompressed, bool GraphicFieldOnly = false, bool SetLabelLength = false, byte Threshold = 128, PDFtoZPL.DitheringKind DitheringKind = PDFtoZPL.DitheringKind.None, uint PrintQuantity = 0, sbyte LabelTop = 0, short LabelShift = 0) -> void +PDFtoZPL.ZplOptions.DitheringKind.get -> PDFtoZPL.DitheringKind +PDFtoZPL.ZplOptions.DitheringKind.init -> void +PDFtoZPL.ZplOptions.EncodingKind.get -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.ZplOptions.EncodingKind.init -> void +PDFtoZPL.ZplOptions.GraphicFieldOnly.get -> bool +PDFtoZPL.ZplOptions.GraphicFieldOnly.init -> void +PDFtoZPL.ZplOptions.PrintQuantity.get -> uint +PDFtoZPL.ZplOptions.PrintQuantity.init -> void +PDFtoZPL.ZplOptions.SetLabelLength.get -> bool +PDFtoZPL.ZplOptions.SetLabelLength.init -> void +PDFtoZPL.ZplOptions.Threshold.get -> byte +PDFtoZPL.ZplOptions.Threshold.init -> void +PDFtoZPL.ZplOptions.LabelShift.get -> short +PDFtoZPL.ZplOptions.LabelShift.init -> void +PDFtoZPL.ZplOptions.LabelTop.get -> sbyte +PDFtoZPL.ZplOptions.LabelTop.init -> void +PDFtoZPL.IZplOptions +PDFtoZPL.IZplOptions.DitheringKind.get -> PDFtoZPL.DitheringKind +PDFtoZPL.IZplOptions.DitheringKind.init -> void +PDFtoZPL.IZplOptions.EncodingKind.get -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.IZplOptions.EncodingKind.init -> void +PDFtoZPL.IZplOptions.GraphicFieldOnly.get -> bool +PDFtoZPL.IZplOptions.GraphicFieldOnly.init -> void +PDFtoZPL.IZplOptions.PrintQuantity.get -> uint +PDFtoZPL.IZplOptions.PrintQuantity.init -> void +PDFtoZPL.IZplOptions.SetLabelLength.get -> bool +PDFtoZPL.IZplOptions.SetLabelLength.init -> void +PDFtoZPL.IZplOptions.Threshold.get -> byte +PDFtoZPL.IZplOptions.Threshold.init -> void +PDFtoZPL.IZplOptions.LabelShift.get -> short +PDFtoZPL.IZplOptions.LabelShift.init -> void +PDFtoZPL.IZplOptions.LabelTop.get -> sbyte +PDFtoZPL.IZplOptions.LabelTop.init -> void +PDFtoZPL.PdfOptions +PDFtoZPL.PdfOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoZPL.PdfOptions.AntiAliasing.init -> void +PDFtoZPL.PdfOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoZPL.PdfOptions.BackgroundColor.init -> void +PDFtoZPL.PdfOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoZPL.PdfOptions.Bounds.init -> void +PDFtoZPL.PdfOptions.Dpi.get -> int +PDFtoZPL.PdfOptions.Dpi.init -> void +PDFtoZPL.PdfOptions.Height.get -> int? +PDFtoZPL.PdfOptions.Height.init -> void +PDFtoZPL.PdfOptions.PdfOptions() -> void +PDFtoZPL.PdfOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoZPL.PdfOptions.Rotation.init -> void +PDFtoZPL.PdfOptions.Width.get -> int? +PDFtoZPL.PdfOptions.Width.init -> void +PDFtoZPL.PdfOptions.WithAnnotations.get -> bool +PDFtoZPL.PdfOptions.WithAnnotations.init -> void +PDFtoZPL.PdfOptions.WithAspectRatio.get -> bool +PDFtoZPL.PdfOptions.WithAspectRatio.init -> void +PDFtoZPL.PdfOptions.WithFormFill.get -> bool +PDFtoZPL.PdfOptions.WithFormFill.init -> void +PDFtoZPL.PdfOptions.UseTiling.get -> bool +PDFtoZPL.PdfOptions.UseTiling.init -> void +PDFtoZPL.PdfOptions.DpiRelativeToBounds.get -> bool +PDFtoZPL.PdfOptions.DpiRelativeToBounds.init -> void +PDFtoZPL.PdfOptions.PdfOptions(int Dpi = 203, int? Width = null, int? Height = null, bool WithAnnotations = false, bool WithFormFill = false, bool WithAspectRatio = false, PDFtoImage.PdfRotation Rotation = PDFtoImage.PdfRotation.Rotate0, PDFtoImage.PdfAntiAliasing AntiAliasing = PDFtoImage.PdfAntiAliasing.All, SkiaSharp.SKColor? BackgroundColor = null, System.Drawing.RectangleF? Bounds = null, bool UseTiling = false, bool DpiRelativeToBounds = false) -> void +static PDFtoZPL.PdfOptions.implicit operator PDFtoImage.RenderOptions(PDFtoZPL.PdfOptions pdfOptions) -> PDFtoImage.RenderOptions +static PDFtoZPL.Conversion.ConvertBitmap(byte[]! bitmapAsByteArray, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(SkiaSharp.SKBitmap! bitmap, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(string! bitmapPath, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(System.IO.Stream! bitmapAsStream, bool leaveOpen = false, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdf(byte[]! pdfAsByteArray, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdf(string! pdfAsBase64String, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdf(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(string! pdfAsBase64String, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfPage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(byte[]! pdfAsByteArray, System.Index page, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(string! pdfAsBase64String, System.Index page, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(System.IO.Stream! pdfStream, System.Index page, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! \ No newline at end of file diff --git a/PDFtoZPL/PublicAPI/net9.0-android/PublicAPI.Unshipped.txt b/PDFtoZPL/PublicAPI/net9.0-android/PublicAPI.Unshipped.txt new file mode 100644 index 0000000..c907b8d --- /dev/null +++ b/PDFtoZPL/PublicAPI/net9.0-android/PublicAPI.Unshipped.txt @@ -0,0 +1,3 @@ +#nullable enable +PDFtoZPL.Resource +PDFtoZPL.Resource.Resource() -> void \ No newline at end of file diff --git a/PDFtoZPL/PublicAPI/net9.0-ios/PublicAPI.Shipped.txt b/PDFtoZPL/PublicAPI/net9.0-ios/PublicAPI.Shipped.txt new file mode 100644 index 0000000..66cd457 --- /dev/null +++ b/PDFtoZPL/PublicAPI/net9.0-ios/PublicAPI.Shipped.txt @@ -0,0 +1,91 @@ +#nullable enable +PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Base64 = 2 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Base64Compressed = 3 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Hexadecimal = 0 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.HexadecimalCompressed = 1 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.Conversion +PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.Atkinson = 2 -> PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.FloydSteinberg = 1 -> PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.None = 0 -> PDFtoZPL.DitheringKind +PDFtoZPL.ZplOptions +PDFtoZPL.ZplOptions.ZplOptions() -> void +PDFtoZPL.ZplOptions.ZplOptions(PDFtoZPL.BitmapEncodingKind EncodingKind = PDFtoZPL.BitmapEncodingKind.HexadecimalCompressed, bool GraphicFieldOnly = false, bool SetLabelLength = false, byte Threshold = 128, PDFtoZPL.DitheringKind DitheringKind = PDFtoZPL.DitheringKind.None, uint PrintQuantity = 0, sbyte LabelTop = 0, short LabelShift = 0) -> void +PDFtoZPL.ZplOptions.DitheringKind.get -> PDFtoZPL.DitheringKind +PDFtoZPL.ZplOptions.DitheringKind.init -> void +PDFtoZPL.ZplOptions.EncodingKind.get -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.ZplOptions.EncodingKind.init -> void +PDFtoZPL.ZplOptions.GraphicFieldOnly.get -> bool +PDFtoZPL.ZplOptions.GraphicFieldOnly.init -> void +PDFtoZPL.ZplOptions.PrintQuantity.get -> uint +PDFtoZPL.ZplOptions.PrintQuantity.init -> void +PDFtoZPL.ZplOptions.SetLabelLength.get -> bool +PDFtoZPL.ZplOptions.SetLabelLength.init -> void +PDFtoZPL.ZplOptions.Threshold.get -> byte +PDFtoZPL.ZplOptions.Threshold.init -> void +PDFtoZPL.ZplOptions.LabelShift.get -> short +PDFtoZPL.ZplOptions.LabelShift.init -> void +PDFtoZPL.ZplOptions.LabelTop.get -> sbyte +PDFtoZPL.ZplOptions.LabelTop.init -> void +PDFtoZPL.IZplOptions +PDFtoZPL.IZplOptions.DitheringKind.get -> PDFtoZPL.DitheringKind +PDFtoZPL.IZplOptions.DitheringKind.init -> void +PDFtoZPL.IZplOptions.EncodingKind.get -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.IZplOptions.EncodingKind.init -> void +PDFtoZPL.IZplOptions.GraphicFieldOnly.get -> bool +PDFtoZPL.IZplOptions.GraphicFieldOnly.init -> void +PDFtoZPL.IZplOptions.PrintQuantity.get -> uint +PDFtoZPL.IZplOptions.PrintQuantity.init -> void +PDFtoZPL.IZplOptions.SetLabelLength.get -> bool +PDFtoZPL.IZplOptions.SetLabelLength.init -> void +PDFtoZPL.IZplOptions.Threshold.get -> byte +PDFtoZPL.IZplOptions.Threshold.init -> void +PDFtoZPL.IZplOptions.LabelShift.get -> short +PDFtoZPL.IZplOptions.LabelShift.init -> void +PDFtoZPL.IZplOptions.LabelTop.get -> sbyte +PDFtoZPL.IZplOptions.LabelTop.init -> void +PDFtoZPL.PdfOptions +PDFtoZPL.PdfOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoZPL.PdfOptions.AntiAliasing.init -> void +PDFtoZPL.PdfOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoZPL.PdfOptions.BackgroundColor.init -> void +PDFtoZPL.PdfOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoZPL.PdfOptions.Bounds.init -> void +PDFtoZPL.PdfOptions.Dpi.get -> int +PDFtoZPL.PdfOptions.Dpi.init -> void +PDFtoZPL.PdfOptions.Height.get -> int? +PDFtoZPL.PdfOptions.Height.init -> void +PDFtoZPL.PdfOptions.PdfOptions() -> void +PDFtoZPL.PdfOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoZPL.PdfOptions.Rotation.init -> void +PDFtoZPL.PdfOptions.Width.get -> int? +PDFtoZPL.PdfOptions.Width.init -> void +PDFtoZPL.PdfOptions.WithAnnotations.get -> bool +PDFtoZPL.PdfOptions.WithAnnotations.init -> void +PDFtoZPL.PdfOptions.WithAspectRatio.get -> bool +PDFtoZPL.PdfOptions.WithAspectRatio.init -> void +PDFtoZPL.PdfOptions.WithFormFill.get -> bool +PDFtoZPL.PdfOptions.WithFormFill.init -> void +PDFtoZPL.PdfOptions.UseTiling.get -> bool +PDFtoZPL.PdfOptions.UseTiling.init -> void +PDFtoZPL.PdfOptions.DpiRelativeToBounds.get -> bool +PDFtoZPL.PdfOptions.DpiRelativeToBounds.init -> void +PDFtoZPL.PdfOptions.PdfOptions(int Dpi = 203, int? Width = null, int? Height = null, bool WithAnnotations = false, bool WithFormFill = false, bool WithAspectRatio = false, PDFtoImage.PdfRotation Rotation = PDFtoImage.PdfRotation.Rotate0, PDFtoImage.PdfAntiAliasing AntiAliasing = PDFtoImage.PdfAntiAliasing.All, SkiaSharp.SKColor? BackgroundColor = null, System.Drawing.RectangleF? Bounds = null, bool UseTiling = false, bool DpiRelativeToBounds = false) -> void +static PDFtoZPL.PdfOptions.implicit operator PDFtoImage.RenderOptions(PDFtoZPL.PdfOptions pdfOptions) -> PDFtoImage.RenderOptions +static PDFtoZPL.Conversion.ConvertBitmap(byte[]! bitmapAsByteArray, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(SkiaSharp.SKBitmap! bitmap, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(string! bitmapPath, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(System.IO.Stream! bitmapAsStream, bool leaveOpen = false, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdf(byte[]! pdfAsByteArray, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdf(string! pdfAsBase64String, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdf(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(string! pdfAsBase64String, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfPage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(byte[]! pdfAsByteArray, System.Index page, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(string! pdfAsBase64String, System.Index page, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(System.IO.Stream! pdfStream, System.Index page, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! \ No newline at end of file diff --git a/PDFtoZPL/PublicAPI/net9.0-ios/PublicAPI.Unshipped.txt b/PDFtoZPL/PublicAPI/net9.0-ios/PublicAPI.Unshipped.txt new file mode 100644 index 0000000..91b0e1a --- /dev/null +++ b/PDFtoZPL/PublicAPI/net9.0-ios/PublicAPI.Unshipped.txt @@ -0,0 +1 @@ +#nullable enable \ No newline at end of file diff --git a/PDFtoZPL/PublicAPI/net9.0/PublicAPI.Shipped.txt b/PDFtoZPL/PublicAPI/net9.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000..66cd457 --- /dev/null +++ b/PDFtoZPL/PublicAPI/net9.0/PublicAPI.Shipped.txt @@ -0,0 +1,91 @@ +#nullable enable +PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Base64 = 2 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Base64Compressed = 3 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.Hexadecimal = 0 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.BitmapEncodingKind.HexadecimalCompressed = 1 -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.Conversion +PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.Atkinson = 2 -> PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.FloydSteinberg = 1 -> PDFtoZPL.DitheringKind +PDFtoZPL.DitheringKind.None = 0 -> PDFtoZPL.DitheringKind +PDFtoZPL.ZplOptions +PDFtoZPL.ZplOptions.ZplOptions() -> void +PDFtoZPL.ZplOptions.ZplOptions(PDFtoZPL.BitmapEncodingKind EncodingKind = PDFtoZPL.BitmapEncodingKind.HexadecimalCompressed, bool GraphicFieldOnly = false, bool SetLabelLength = false, byte Threshold = 128, PDFtoZPL.DitheringKind DitheringKind = PDFtoZPL.DitheringKind.None, uint PrintQuantity = 0, sbyte LabelTop = 0, short LabelShift = 0) -> void +PDFtoZPL.ZplOptions.DitheringKind.get -> PDFtoZPL.DitheringKind +PDFtoZPL.ZplOptions.DitheringKind.init -> void +PDFtoZPL.ZplOptions.EncodingKind.get -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.ZplOptions.EncodingKind.init -> void +PDFtoZPL.ZplOptions.GraphicFieldOnly.get -> bool +PDFtoZPL.ZplOptions.GraphicFieldOnly.init -> void +PDFtoZPL.ZplOptions.PrintQuantity.get -> uint +PDFtoZPL.ZplOptions.PrintQuantity.init -> void +PDFtoZPL.ZplOptions.SetLabelLength.get -> bool +PDFtoZPL.ZplOptions.SetLabelLength.init -> void +PDFtoZPL.ZplOptions.Threshold.get -> byte +PDFtoZPL.ZplOptions.Threshold.init -> void +PDFtoZPL.ZplOptions.LabelShift.get -> short +PDFtoZPL.ZplOptions.LabelShift.init -> void +PDFtoZPL.ZplOptions.LabelTop.get -> sbyte +PDFtoZPL.ZplOptions.LabelTop.init -> void +PDFtoZPL.IZplOptions +PDFtoZPL.IZplOptions.DitheringKind.get -> PDFtoZPL.DitheringKind +PDFtoZPL.IZplOptions.DitheringKind.init -> void +PDFtoZPL.IZplOptions.EncodingKind.get -> PDFtoZPL.BitmapEncodingKind +PDFtoZPL.IZplOptions.EncodingKind.init -> void +PDFtoZPL.IZplOptions.GraphicFieldOnly.get -> bool +PDFtoZPL.IZplOptions.GraphicFieldOnly.init -> void +PDFtoZPL.IZplOptions.PrintQuantity.get -> uint +PDFtoZPL.IZplOptions.PrintQuantity.init -> void +PDFtoZPL.IZplOptions.SetLabelLength.get -> bool +PDFtoZPL.IZplOptions.SetLabelLength.init -> void +PDFtoZPL.IZplOptions.Threshold.get -> byte +PDFtoZPL.IZplOptions.Threshold.init -> void +PDFtoZPL.IZplOptions.LabelShift.get -> short +PDFtoZPL.IZplOptions.LabelShift.init -> void +PDFtoZPL.IZplOptions.LabelTop.get -> sbyte +PDFtoZPL.IZplOptions.LabelTop.init -> void +PDFtoZPL.PdfOptions +PDFtoZPL.PdfOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoZPL.PdfOptions.AntiAliasing.init -> void +PDFtoZPL.PdfOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoZPL.PdfOptions.BackgroundColor.init -> void +PDFtoZPL.PdfOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoZPL.PdfOptions.Bounds.init -> void +PDFtoZPL.PdfOptions.Dpi.get -> int +PDFtoZPL.PdfOptions.Dpi.init -> void +PDFtoZPL.PdfOptions.Height.get -> int? +PDFtoZPL.PdfOptions.Height.init -> void +PDFtoZPL.PdfOptions.PdfOptions() -> void +PDFtoZPL.PdfOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoZPL.PdfOptions.Rotation.init -> void +PDFtoZPL.PdfOptions.Width.get -> int? +PDFtoZPL.PdfOptions.Width.init -> void +PDFtoZPL.PdfOptions.WithAnnotations.get -> bool +PDFtoZPL.PdfOptions.WithAnnotations.init -> void +PDFtoZPL.PdfOptions.WithAspectRatio.get -> bool +PDFtoZPL.PdfOptions.WithAspectRatio.init -> void +PDFtoZPL.PdfOptions.WithFormFill.get -> bool +PDFtoZPL.PdfOptions.WithFormFill.init -> void +PDFtoZPL.PdfOptions.UseTiling.get -> bool +PDFtoZPL.PdfOptions.UseTiling.init -> void +PDFtoZPL.PdfOptions.DpiRelativeToBounds.get -> bool +PDFtoZPL.PdfOptions.DpiRelativeToBounds.init -> void +PDFtoZPL.PdfOptions.PdfOptions(int Dpi = 203, int? Width = null, int? Height = null, bool WithAnnotations = false, bool WithFormFill = false, bool WithAspectRatio = false, PDFtoImage.PdfRotation Rotation = PDFtoImage.PdfRotation.Rotate0, PDFtoImage.PdfAntiAliasing AntiAliasing = PDFtoImage.PdfAntiAliasing.All, SkiaSharp.SKColor? BackgroundColor = null, System.Drawing.RectangleF? Bounds = null, bool UseTiling = false, bool DpiRelativeToBounds = false) -> void +static PDFtoZPL.PdfOptions.implicit operator PDFtoImage.RenderOptions(PDFtoZPL.PdfOptions pdfOptions) -> PDFtoImage.RenderOptions +static PDFtoZPL.Conversion.ConvertBitmap(byte[]! bitmapAsByteArray, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(SkiaSharp.SKBitmap! bitmap, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(string! bitmapPath, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertBitmap(System.IO.Stream! bitmapAsStream, bool leaveOpen = false, PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdf(byte[]! pdfAsByteArray, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdf(string! pdfAsBase64String, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdf(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(string! pdfAsBase64String, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoZPL.Conversion.ConvertPdfPage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(byte[]! pdfAsByteArray, System.Index page, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(string! pdfAsBase64String, System.Index page, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! +static PDFtoZPL.Conversion.ConvertPdfPage(System.IO.Stream! pdfStream, System.Index page, bool leaveOpen = false, string? password = null, PDFtoZPL.PdfOptions pdfOptions = default(PDFtoZPL.PdfOptions), PDFtoZPL.ZplOptions zplOptions = default(PDFtoZPL.ZplOptions)) -> string! \ No newline at end of file diff --git a/PDFtoZPL/PublicAPI/net9.0/PublicAPI.Unshipped.txt b/PDFtoZPL/PublicAPI/net9.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000..91b0e1a --- /dev/null +++ b/PDFtoZPL/PublicAPI/net9.0/PublicAPI.Unshipped.txt @@ -0,0 +1 @@ +#nullable enable \ No newline at end of file diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 83f7735..2e10127 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,7 +1,7 @@  - net462;net471;net481;net6.0;net7.0;net8.0 + net462;net471;net481;net6.0;net8.0;net9.0 PDFtoZPL.Tests PDFtoZPL.Tests false @@ -72,7 +72,7 @@ - - + + \ No newline at end of file diff --git a/WebConverter/Properties/PublishProfiles/PublishSite.pubxml b/WebConverter/Properties/PublishProfiles/PublishSite.pubxml index ef80516..1100b33 100644 --- a/WebConverter/Properties/PublishProfiles/PublishSite.pubxml +++ b/WebConverter/Properties/PublishProfiles/PublishSite.pubxml @@ -15,7 +15,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. FileSystem <_TargetId>Folder - net8.0 + net9.0 browser-wasm true eda29f04-48e7-4823-8141-22a82cb80037 diff --git a/WebConverter/WebConverter.csproj b/WebConverter/WebConverter.csproj index ffe2b21..fbcfa46 100644 --- a/WebConverter/WebConverter.csproj +++ b/WebConverter/WebConverter.csproj @@ -1,14 +1,14 @@  - net8.0 + net9.0 browser-wasm service-worker-assets.js PDFtoZPL.WebConverter PDFtoZPL.WebConverter PDFtoZPL.WebConverter.Program - 5.3.1 - + 6.0.0 + preview true true true @@ -36,18 +36,18 @@ - -O0 -g3 -s ASSERTIONS=2 -s SAFE_HEAP=0 -s STACK_OVERFLOW_CHECK=1 -s DEMANGLE_SUPPORT=1 + -O0 -g3 -s ASSERTIONS=2 -s SAFE_HEAP=0 -s STACK_OVERFLOW_CHECK=1 - -O3 -g0 -s ASSERTIONS=0 -s SAFE_HEAP=0 -s STACK_OVERFLOW_CHECK=0 -s DEMANGLE_SUPPORT=0 + -Oz -g0 -s ASSERTIONS=0 -s SAFE_HEAP=0 -s STACK_OVERFLOW_CHECK=0 - - + + diff --git a/WebConverter/wwwroot/index.html b/WebConverter/wwwroot/index.html index 37f7a0c..7e2d960 100644 --- a/WebConverter/wwwroot/index.html +++ b/WebConverter/wwwroot/index.html @@ -1,5 +1,5 @@ - + diff --git a/WebConverter/wwwroot/service-worker.published.js b/WebConverter/wwwroot/service-worker.published.js index 9898c21..9d54e8d 100644 --- a/WebConverter/wwwroot/service-worker.published.js +++ b/WebConverter/wwwroot/service-worker.published.js @@ -17,7 +17,7 @@ const readAsDataURLAsync = (file) => { }); }; -var webShareFormData = null; +let webShareFormData = null; self.importScripts('./service-worker-assets.js'); self.addEventListener('install', event => event.waitUntil(onInstall(event))); @@ -76,14 +76,14 @@ async function onMessage(event) { return; } - var payload = null; + let payload = null; if (webShareFormData !== undefined && webShareFormData !== null) { - var filesStringified = []; + const filesStringified = []; for (const file of webShareFormData.getAll('files')) { - var fileStringified = { + const fileStringified = { name: file.name, lastModified: file.lastModified, size: file.size,