Skip to content

Commit

Permalink
Update to PDFtoImage 4.0.2 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila authored Jun 28, 2024
1 parent 21c4197 commit 70c7067
Show file tree
Hide file tree
Showing 27 changed files with 88 additions and 32 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,22 @@ jobs:
!**/*.snupkg
if-no-files-found: error
- name: Publish NuGet packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@main
with:
name: NuGet packages
path: |
PDFtoZPL/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/*.nupkg
PDFtoZPL/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/*.snupkg
if-no-files-found: error
- name: Publish tests
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@main
if: success() && (github.event_name != 'workflow_dispatch' && true || inputs.run_tests) == true
with:
name: Test assemblies
path: Tests/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}
if-no-files-found: error
retention-days: 1
compression-level: 9
test:
name: Test (${{ matrix.os }})
needs: build
Expand All @@ -145,7 +146,7 @@ jobs:
with:
dotnet-version: 8.x
- name: Download test assemblies
uses: actions/download-artifact@v4
uses: actions/download-artifact@main
with:
name: Test assemblies
- name: .NET Framework 4.6.2
Expand All @@ -168,7 +169,7 @@ jobs:
run: dotnet test net8.0/*.Tests.dll --logger trx --verbosity detailed
- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@main
with:
name: Test results (${{ matrix.os }})
path: ./**/*.trx
Expand All @@ -187,7 +188,7 @@ jobs:
if: (success() || failure()) && (github.event_name != 'workflow_dispatch' && true || inputs.publish_testresults) == true
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@main
with:
pattern: Test results (*)
merge-multiple: true
Expand Down Expand Up @@ -255,7 +256,7 @@ jobs:
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
uses: actions/cache@main
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
Expand Down
8 changes: 5 additions & 3 deletions Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

namespace PDFtoZPL.Console
{
#if NET6_0_OR_GREATER
#pragma warning disable CA1416
#endif

#if NET8_0_OR_GREATER
#pragma warning disable CA1510 // Use ArgumentNullException throw helper
#endif
Expand Down Expand Up @@ -36,9 +40,7 @@ public static int Main(string[] args)
#else
true
#endif
#pragma warning disable CA1416
? Conversion.ConvertPdfPage(inputStream, page: page - 1, pdfOptions: new (Dpi: dpi, WithAnnotations: withAnnotations, WithFormFill: withFormFill), zplOptions: new (EncodingKind: encodingKind))
#pragma warning restore CA1416
? Conversion.ConvertPdfPage(inputStream, page: page - 1, pdfOptions: new(Dpi: dpi, WithAnnotations: withAnnotations, WithFormFill: withFormFill), zplOptions: new(EncodingKind: encodingKind))
: throw new NotSupportedException("Only win-x86, win-x64, win-arm64, linux-x64, linux-arm, linux-arm64, osx-x64 and osx-arm64 are supported for PDF file conversion."),
_ => throw new InvalidOperationException("The given input file path must have pdf as file extension."),
};
Expand Down
2 changes: 1 addition & 1 deletion PDFtoZPL/ConversionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static byte[] HexToByteArray(string input)
for (int i = 0; i < input.Length; i += 2)
result.Add(_hexLookupTable[input.Substring(i, 2)]);

return result.ToArray();
return [.. result];
}

public static string ConvertBitmapToHex(SKBitmap pdfBitmap, byte threshold, out int binaryByteCount, out int bytesPerRow)
Expand Down
5 changes: 3 additions & 2 deletions PDFtoZPL/PDFtoZPL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<PackageProjectUrl>https://github.com/sungaila/PDFtoZPL</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/sungaila/PDFtoZPL/master/Icon_128.png</PackageIconUrl>
<Description>A .NET library to convert PDF files (and bitmaps) into Zebra Programming Language code.</Description>
<PackageReleaseNotes>- Revert from 300 to 203 as default DPI when no pdfOptions was specified. This is a breaking change.</PackageReleaseNotes>
<PackageReleaseNotes>- Revert from 300 to 203 as default DPI when no pdfOptions was specified. This is a breaking change.
- Added optional parameter DpiRelativeToBounds.</PackageReleaseNotes>
<PackageTags>PDF ZPL Zebra Bitmap Convert Conversion C# PDFium MAUI wasm WebAssembly</PackageTags>
<RepositoryUrl>https://github.com/sungaila/PDFtoZPL.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down Expand Up @@ -66,7 +67,7 @@

<!-- SourceLink build steps and NuGet packages -->
<ItemGroup>
<PackageReference Include="PDFtoImage" Version="4.0.1" PrivateAssets="analyzers" />
<PackageReference Include="PDFtoImage" Version="4.0.2" PrivateAssets="analyzers" />
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="all" />
<PackageReference Include="SharpZipLib" Version="1.4.2" PrivateAssets="analyzers" />
</ItemGroup>
Expand Down
11 changes: 7 additions & 4 deletions PDFtoZPL/PdfOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ namespace PDFtoZPL
/// <param name="Rotation">Specifies the rotation at 90 degree intervals.</param>
/// <param name="AntiAliasing">Specifies which parts of the PDF should be anti-aliasing for rendering.</param>
/// <param name="BackgroundColor">Specifies the background color. Defaults to <see cref="SKColors.White"/>.</param>
/// <param name="Bounds">Specifies the bounds for the page relative to <see cref="PDFtoImage.Conversion.GetPageSizes(string,string)"/>. This can be used for clipping (bounds inside of page) or additional margins (bounds outside of page).</param>
/// <param name="Bounds">Specifies the bounds for the page relative to <see cref="PDFtoImage.Conversion.GetPageSizes(string,string)"/>. This can be used for clipping (bounds inside of page) or additional margins (bounds outside of page). The bound units are relative to the PDF size (at 72 DPI).</param>
/// <param name="UseTiling">Specifies that the PDF should be rendered as several segments and merged into the final image. This can help in cases where the output image is too large, causing corrupted images (e.g. missing text) or crashes.</param>
/// <param name="DpiRelativeToBounds">Specifies that <see cref="Dpi"/> and <see cref="WithAspectRatio"/> will be calculated relative to <see cref="Bounds"/> instead of the original PDF.</param>
public readonly record struct PdfOptions(
int Dpi = 203,

Check warning on line 23 in PDFtoZPL/PdfOptions.cs

View workflow job for this annotation

GitHub Actions / SonarCloud

This method signature overlaps the one defined on line 39, the default parameter value can only be used with named arguments. (https://rules.sonarsource.com/csharp/RSPEC-3427)
int? Width = null,
Expand All @@ -29,12 +30,13 @@ public readonly record struct PdfOptions(
PdfAntiAliasing AntiAliasing = PdfAntiAliasing.All,
SKColor? BackgroundColor = null,
RectangleF? Bounds = null,
bool UseTiling = false)
bool UseTiling = false,
bool DpiRelativeToBounds = false) : IRenderOptions
{
/// <summary>
/// Constructs <see cref="PdfOptions"/> with default values.
/// </summary>
public PdfOptions() : this(203, null, null, false, false, false, PdfRotation.Rotate0, PdfAntiAliasing.All, null, null, false) { }
public PdfOptions() : this(203, null, null, false, false, false, PdfRotation.Rotate0, PdfAntiAliasing.All, null, null, false, false) { }

/// <summary>
/// Implicit conversion to <see cref="PDFtoImage.RenderOptions"/>.
Expand All @@ -51,6 +53,7 @@ public PdfOptions() : this(203, null, null, false, false, false, PdfRotation.Rot
pdfOptions.AntiAliasing,
pdfOptions.BackgroundColor,
pdfOptions.Bounds,
pdfOptions.UseTiling);
pdfOptions.UseTiling,
pdfOptions.DpiRelativeToBounds);
}
}
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
5 changes: 4 additions & 1 deletion PDFtoZPL/PublicAPI/monoandroid10.0/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#nullable enable
#nullable enable
PDFtoZPL.Resource
PDFtoZPL.Resource.Attribute
PDFtoZPL.Resource.Resource() -> void
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/net462/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/net471/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/net481/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/net6.0/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/net7.0-android/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
5 changes: 4 additions & 1 deletion PDFtoZPL/PublicAPI/net7.0-android/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#nullable enable
#nullable enable
PDFtoZPL.Resource
PDFtoZPL.Resource.Attribute
PDFtoZPL.Resource.Resource() -> void
4 changes: 3 additions & 1 deletion PDFtoZPL/PublicAPI/net7.0/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ PDFtoZPL.PdfOptions.WithFormFill.get -> bool
PDFtoZPL.PdfOptions.WithFormFill.init -> void
PDFtoZPL.PdfOptions.UseTiling.get -> bool
PDFtoZPL.PdfOptions.UseTiling.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) -> 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!
Expand Down
Loading

0 comments on commit 70c7067

Please sign in to comment.