diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 20957c81..0e26d618 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -123,15 +123,18 @@ jobs:
src/PDFtoImage/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/*.nupkg
src/PDFtoImage/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/*.snupkg
if-no-files-found: error
+ - name: Compress tests
+ shell: pwsh
+ run: Compress-Archive -Path src/Tests/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}/* -DestinationPath TestAssemblies.zip -CompressionLevel "Fastest"
- name: Publish tests
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
if: success() && (github.event_name != 'workflow_dispatch' && true || inputs.run_tests) == true
with:
name: Test assemblies
- path: src/Tests/bin/${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}
+ path: TestAssemblies.zip
if-no-files-found: error
retention-days: 1
- #compression-level: 0
+ compression-level: 0
- name: Publish test project MonoConsole
uses: actions/upload-artifact@v4
if: success() && (github.event_name != 'workflow_dispatch' && true || inputs.run_tests) == true
@@ -181,9 +184,13 @@ jobs:
run: mono MonoConsole/net481/PDFtoImage.FrameworkTests.MonoConsole.exe
- name: Download test assemblies
if: success() || failure()
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: Test assemblies
+ - name: Expand tests
+ if: success() || failure()
+ shell: pwsh
+ run: Expand-Archive -Path TestAssemblies.zip -DestinationPath .
- name: .NET Framework 4.6.2
if: runner.os == 'Windows' && (success() || failure())
run: dotnet test net462/*.Tests.dll --logger trx --verbosity detailed --results-directory "${{ matrix.os }}/TestResults" ${{ (github.event_name == 'workflow_dispatch' && inputs.generate_assets) == true && '--settings net462/SaveOutputInGeneratedFolder.runsettings' || '' }}
diff --git a/README.md b/README.md
index 015ebf04..94f9c380 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,23 @@ Call a static method from `PDFtoImage.Conversion`:
https://github.com/sungaila/PDFtoImage.git?path=etc/UnityPackage
```
+## Breaking changes in v4.0.0
+Starting with v4.0.0 the struct `RenderOptions` is used for most methods. This is a breaking change when updating from v3.1.0 and older.
+### Option 1: Migrate to new API
+```csharp
+// this will not compile anymore
+PDFtoImage.Conversion.SaveJpeg("image.jpg", pdfStream, dpi: 300, rotation: PdfRotation.Rotate90);
+
+// use this instead
+PDFtoImage.Conversion.SaveJpeg("image.jpg", pdfStream, options: new(Dpi: 300, Rotation: PdfRotation.Rotate90));
+```
+### Option 2: Change namespace
+Note: This namespace is used for backward compatibility and will be removed in a future version.
+```csharp
+using PDFtoImage;
+using Conversion = PDFtoImage.Compatibility.Conversion;
+```
+
## Supported runtimes
* [.NET (Core)](https://learn.microsoft.com/en-us/dotnet/core/introduction)
* [.NET Framework](https://learn.microsoft.com/en-us/dotnet/framework/get-started/overview)
diff --git a/src/Console/Console.csproj b/src/Console/Console.csproj
index 9d1ec668..fcdaa2c9 100644
--- a/src/Console/Console.csproj
+++ b/src/Console/Console.csproj
@@ -7,7 +7,7 @@
PDFtoImage.Console
PDFtoImage.Console
PDFtoImage.Console.Program
- 3.1.0
+ 4.0.0
Debug;Release;ReleaseSigned
diff --git a/src/Console/Program.cs b/src/Console/Program.cs
index d6c816ef..5256a8a8 100644
--- a/src/Console/Program.cs
+++ b/src/Console/Program.cs
@@ -35,14 +35,14 @@ public static int Main(string[] args)
switch (Path.GetExtension(outputPath).ToLower())
{
case ".png":
- Conversion.SavePng(outputPath, inputStream, page: page - 1, dpi: dpi, withAnnotations: withAnnotations, withFormFill: withFormFill);
+ Conversion.SavePng(outputPath, inputStream, page: page - 1, options: new(Dpi: dpi, WithAnnotations: withAnnotations, WithFormFill: withFormFill));
break;
case ".jpg":
case ".jpeg":
- Conversion.SaveJpeg(outputPath, inputStream, page: page - 1, dpi: dpi, withAnnotations: withAnnotations, withFormFill: withFormFill);
+ Conversion.SaveJpeg(outputPath, inputStream, page: page - 1, options: new(Dpi: dpi, WithAnnotations: withAnnotations, WithFormFill: withFormFill));
break;
case ".webp":
- Conversion.SaveWebp(outputPath, inputStream, page: page - 1, dpi: dpi, withAnnotations: withAnnotations, withFormFill: withFormFill);
+ Conversion.SaveWebp(outputPath, inputStream, page: page - 1, options: new(Dpi: dpi, WithAnnotations: withAnnotations, WithFormFill: withFormFill));
break;
default:
throw new InvalidOperationException("Only the following file extensions are supported: png, jpg/jpeg and webp.");
diff --git a/src/FrameworkTests/AotConsole/Program.cs b/src/FrameworkTests/AotConsole/Program.cs
index 43ef85a7..de88d6ad 100644
--- a/src/FrameworkTests/AotConsole/Program.cs
+++ b/src/FrameworkTests/AotConsole/Program.cs
@@ -3,7 +3,7 @@
public class Program
{
private const int ExpectedWidth = 5333;
- private const int ExpectedHeight = 2666;
+ private const int ExpectedHeight = 2667;
public static void Main()
{
diff --git a/src/FrameworkTests/MonoAndroid/MonoAndroid.csproj b/src/FrameworkTests/MonoAndroid/MonoAndroid.csproj
index 9d4b66f6..d8e804ba 100644
--- a/src/FrameworkTests/MonoAndroid/MonoAndroid.csproj
+++ b/src/FrameworkTests/MonoAndroid/MonoAndroid.csproj
@@ -112,8 +112,8 @@
-
-
+
+
diff --git a/src/FrameworkTests/MonoConsole/Program.cs b/src/FrameworkTests/MonoConsole/Program.cs
index f466f09f..07b1b208 100644
--- a/src/FrameworkTests/MonoConsole/Program.cs
+++ b/src/FrameworkTests/MonoConsole/Program.cs
@@ -6,7 +6,7 @@ namespace PDFtoImage.FrameworkTests.MonoConsole
public class Program
{
private const int ExpectedWidth = 5333;
- private const int ExpectedHeight = 2666;
+ private const int ExpectedHeight = 2667;
public static void Main()
{
diff --git a/src/PDFtoImage/Compatibility/Conversion.cs b/src/PDFtoImage/Compatibility/Conversion.cs
new file mode 100644
index 00000000..daf66ff8
--- /dev/null
+++ b/src/PDFtoImage/Compatibility/Conversion.cs
@@ -0,0 +1,841 @@
+using SkiaSharp;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.IO;
+using System.Runtime.CompilerServices;
+using System.Runtime.Versioning;
+using System.Threading;
+
+namespace PDFtoImage.Compatibility
+{
+ ///
+ /// Provides methods to render PDFs into images. Used for backward compatibility.
+ ///
+#if NET6_0_OR_GREATER
+ [SupportedOSPlatform("Windows")]
+ [SupportedOSPlatform("Linux")]
+ [SupportedOSPlatform("macOS")]
+ [SupportedOSPlatform("Android31.0")]
+#endif
+ [Obsolete("This class is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static class Conversion
+ {
+ ///
+ /// Renders a single page of a given PDF and saves it as a JPEG.
+ ///
+ /// The output image file path.
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveJpeg(
+ string imageFilename,
+ string pdfAsBase64String,
+ string? password = null,
+ int page = 0,
+ int dpi = 300,
+ int? width = null,
+ int? height = null,
+ bool withAnnotations = false,
+ bool withFormFill = false,
+ bool withAspectRatio = false,
+ PdfRotation rotation = PdfRotation.Rotate0,
+ PdfAntiAliasing antiAliasing = PdfAntiAliasing.All,
+ SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a JPEG.
+ ///
+ /// The output image stream.
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveJpeg(
+ Stream imageStream,
+ string pdfAsBase64String,
+ string? password = null,
+ int page = 0,
+ int dpi = 300,
+ int? width = null,
+ int? height = null,
+ bool withAnnotations = false,
+ bool withFormFill = false,
+ bool withAspectRatio = false,
+ PdfRotation rotation = PdfRotation.Rotate0,
+ PdfAntiAliasing antiAliasing = PdfAntiAliasing.All,
+ SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a JPEG.
+ ///
+ /// The output image file path.
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveJpeg(
+ string imageFilename,
+ byte[] pdfAsByteArray,
+ string? password = null,
+ int page = 0,
+ int dpi = 300,
+ int? width = null,
+ int? height = null,
+ bool withAnnotations = false,
+ bool withFormFill = false,
+ bool withAspectRatio = false,
+ PdfRotation rotation = PdfRotation.Rotate0,
+ PdfAntiAliasing antiAliasing = PdfAntiAliasing.All,
+ SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a JPEG.
+ ///
+ /// The output image stream.
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveJpeg(
+ Stream imageStream,
+ byte[] pdfAsByteArray,
+ string? password = null,
+ int page = 0,
+ int dpi = 300,
+ int? width = null,
+ int? height = null,
+ bool withAnnotations = false,
+ bool withFormFill = false,
+ bool withAspectRatio = false,
+ PdfRotation rotation = PdfRotation.Rotate0,
+ PdfAntiAliasing antiAliasing = PdfAntiAliasing.All,
+ SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a JPEG.
+ ///
+ /// The output image file path.
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveJpeg(
+ string imageFilename,
+ Stream pdfStream,
+ string? password = null,
+ int page = 0,
+ int dpi = 300,
+ int? width = null,
+ int? height = null,
+ bool withAnnotations = false,
+ bool withFormFill = false,
+ bool withAspectRatio = false,
+ PdfRotation rotation = PdfRotation.Rotate0,
+ PdfAntiAliasing antiAliasing = PdfAntiAliasing.All,
+ SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a JPEG.
+ ///
+ /// The output image stream.
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveJpeg(
+ Stream imageStream,
+ Stream pdfStream,
+ string? password = null,
+ int page = 0,
+ int dpi = 300,
+ int? width = null,
+ int? height = null,
+ bool withAnnotations = false,
+ bool withFormFill = false,
+ bool withAspectRatio = false,
+ PdfRotation rotation = PdfRotation.Rotate0,
+ PdfAntiAliasing antiAliasing = PdfAntiAliasing.All,
+ SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a PNG.
+ ///
+ /// The output image file path.
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SavePng(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a PNG.
+ ///
+ /// The output image stream.
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SavePng(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a PNG.
+ ///
+ /// The output image file path.
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SavePng(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a PNG.
+ ///
+ /// The output image stream.
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SavePng(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a PNG.
+ ///
+ /// The output image file path.
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SavePng(string imageFilename, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a PNG.
+ ///
+ /// The output image stream.
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SavePng(Stream imageStream, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a bitmap.
+ ///
+ /// The output image file path.
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveWebp(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a bitmap.
+ ///
+ /// The output image stream.
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveWebp(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a bitmap.
+ ///
+ /// The output image file path.
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveWebp(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a bitmap.
+ ///
+ /// The output image stream.
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveWebp(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a bitmap.
+ ///
+ /// The output image file path.
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveWebp(string imageFilename, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF and saves it as a bitmap.
+ ///
+ /// The output image stream.
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SaveWebp(Stream imageStream, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ PDFtoImage.Conversion.SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF into an image.
+ ///
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The converted PDF page as an image.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static SKBitmap ToImage(string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImage(pdfAsBase64String, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF into an image.
+ ///
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The converted PDF page as an image.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static SKBitmap ToImage(byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImage(pdfAsByteArray, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF into an image.
+ ///
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF page as an image.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static SKBitmap ToImage(Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImage(pdfStream, false, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders a single page of a given PDF into an image.
+ ///
+ /// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The specific page to be converted.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the desired . Use if the original width should be used.
+ /// The height of the desired . Use if the original height should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF page as an image.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static SKBitmap ToImage(Stream pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImage(pdfStream, leaveOpen, password, page, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF encoded as Base64.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static IEnumerable ToImages(string pdfAsBase64String, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImages(pdfAsBase64String, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF as a byte array.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static IEnumerable ToImages(byte[] pdfAsByteArray, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImages(pdfAsByteArray, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF as a stream.
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static IEnumerable ToImages(Stream pdfStream, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImages(pdfStream, false, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static IEnumerable ToImages(Stream pdfStream, bool leaveOpen, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ {
+ return PDFtoImage.Conversion.ToImages(pdfStream, leaveOpen, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor));
+ }
+
+#if NET6_0_OR_GREATER
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF encoded as Base64.
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static async IAsyncEnumerable ToImagesAsync(string pdfAsBase64String, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ {
+ await foreach (var image in PDFtoImage.Conversion.ToImagesAsync(pdfAsBase64String, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor), cancellationToken))
+ {
+ yield return image;
+ }
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF as a byte array.
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+#if NET6_0_OR_GREATER
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#endif
+ public static async IAsyncEnumerable ToImagesAsync(byte[] pdfAsByteArray, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ {
+ await foreach (var image in PDFtoImage.Conversion.ToImagesAsync(pdfAsByteArray, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor), cancellationToken))
+ {
+ yield return image;
+ }
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF as a stream.
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+#if NET6_0_OR_GREATER
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#endif
+ public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ {
+ await foreach (var image in PDFtoImage.Conversion.ToImagesAsync(pdfStream, false, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor), cancellationToken))
+ {
+ yield return image;
+ }
+ }
+
+ ///
+ /// Renders all pages of a given PDF into images.
+ ///
+ /// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The password for opening the PDF. Use if no password is needed.
+ /// The DPI scaling to use for rasterization of the PDF.
+ /// The width of the all pages. Use if the original width (per page) should be used.
+ /// The height of all pages. Use if the original height (per page) should be used.
+ /// Specifies whether annotations be rendered.
+ /// Specifies whether form filling will be rendered.
+ /// Specifies that or should be adjusted for aspect ratio (either one must be ).
+ /// Specifies the rotation at 90 degree intervals.
+ /// Specifies which parts of the PDF should be anti-aliasing for rendering.
+ /// Specifies the background color. Defaults to .
+ /// The rendered PDF pages as images.
+ [Obsolete("This method is for backward compatibility. Use PDFtoImage.Conversion instead.", false)]
+ [Browsable(false)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, bool leaveOpen, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ {
+ await foreach (var image in PDFtoImage.Conversion.ToImagesAsync(pdfStream, leaveOpen, password, new(dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor), cancellationToken))
+ {
+ yield return image;
+ }
+ }
+#endif
+ }
+}
\ No newline at end of file
diff --git a/src/PDFtoImage/Conversion.cs b/src/PDFtoImage/Conversion.cs
index 5e6a525b..8fad996b 100644
--- a/src/PDFtoImage/Conversion.cs
+++ b/src/PDFtoImage/Conversion.cs
@@ -12,15 +12,20 @@
namespace PDFtoImage
{
-#if NET8_0_OR_GREATER
-#pragma warning disable CA1510 // Use ArgumentNullException throw helper
-#endif
///
/// Provides methods to render PDFs into images.
///
- public static class Conversion
+#if NET8_0_OR_GREATER
+#pragma warning disable CA1510 // Use ArgumentNullException throw helper
+#endif
+#if NET6_0_OR_GREATER
+ [SupportedOSPlatform("Windows")]
+ [SupportedOSPlatform("Linux")]
+ [SupportedOSPlatform("macOS")]
+ [SupportedOSPlatform("Android31.0")]
+#endif
+ public static partial class Conversion
{
- #region SaveJpeg
///
/// Renders a single page of a given PDF and saves it as a JPEG.
///
@@ -28,24 +33,10 @@ public static class Conversion
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveJpeg(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveJpeg(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfAsBase64String, password, page, options);
}
///
@@ -55,24 +46,10 @@ public static void SaveJpeg(string imageFilename, string pdfAsBase64String, stri
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveJpeg(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveJpeg(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfAsBase64String, password, page, options);
}
///
@@ -82,24 +59,10 @@ public static void SaveJpeg(Stream imageStream, string pdfAsBase64String, string
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveJpeg(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveJpeg(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfAsByteArray, password, page, options);
}
///
@@ -109,24 +72,10 @@ public static void SaveJpeg(string imageFilename, byte[] pdfAsByteArray, string?
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveJpeg(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveJpeg(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfAsByteArray, password, page, options);
}
///
@@ -134,26 +83,13 @@ public static void SaveJpeg(Stream imageStream, byte[] pdfAsByteArray, string? p
///
/// The output image file path.
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveJpeg(string imageFilename, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveJpeg(string imageFilename, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Jpeg, pdfStream, leaveOpen, password, page, options);
}
///
@@ -161,30 +97,15 @@ public static void SaveJpeg(string imageFilename, Stream pdfStream, string? pass
///
/// The output image stream.
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveJpeg(Stream imageStream, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveJpeg(Stream imageStream, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Jpeg, pdfStream, leaveOpen, password, page, options);
}
- #endregion
- #region SavePng
///
/// Renders a single page of a given PDF and saves it as a PNG.
///
@@ -192,24 +113,10 @@ public static void SaveJpeg(Stream imageStream, Stream pdfStream, string? passwo
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SavePng(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SavePng(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfAsBase64String, password, page, options);
}
///
@@ -219,24 +126,10 @@ public static void SavePng(string imageFilename, string pdfAsBase64String, strin
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SavePng(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SavePng(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfAsBase64String, password, page, options);
}
///
@@ -246,24 +139,10 @@ public static void SavePng(Stream imageStream, string pdfAsBase64String, string?
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SavePng(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SavePng(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfAsByteArray, password, page, options);
}
///
@@ -273,24 +152,10 @@ public static void SavePng(string imageFilename, byte[] pdfAsByteArray, string?
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SavePng(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SavePng(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfAsByteArray, password, page, options);
}
///
@@ -298,26 +163,13 @@ public static void SavePng(Stream imageStream, byte[] pdfAsByteArray, string? pa
///
/// The output image file path.
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SavePng(string imageFilename, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SavePng(string imageFilename, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Png, pdfStream, leaveOpen, password, page, options);
}
///
@@ -325,30 +177,15 @@ public static void SavePng(string imageFilename, Stream pdfStream, string? passw
///
/// The output image stream.
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SavePng(Stream imageStream, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SavePng(Stream imageStream, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Png, pdfStream, leaveOpen, password, page, options);
}
- #endregion
- #region SaveWebp
///
/// Renders a single page of a given PDF and saves it as a bitmap.
///
@@ -356,24 +193,10 @@ public static void SavePng(Stream imageStream, Stream pdfStream, string? passwor
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveWebp(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveWebp(string imageFilename, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfAsBase64String, password, page, options);
}
///
@@ -383,24 +206,10 @@ public static void SaveWebp(string imageFilename, string pdfAsBase64String, stri
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveWebp(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveWebp(Stream imageStream, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfAsBase64String, password, page, options);
}
///
@@ -410,24 +219,10 @@ public static void SaveWebp(Stream imageStream, string pdfAsBase64String, string
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveWebp(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveWebp(string imageFilename, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfAsByteArray, password, page, options);
}
///
@@ -437,24 +232,10 @@ public static void SaveWebp(string imageFilename, byte[] pdfAsByteArray, string?
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveWebp(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveWebp(Stream imageStream, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfAsByteArray, password, page, options);
}
///
@@ -462,26 +243,13 @@ public static void SaveWebp(Stream imageStream, byte[] pdfAsByteArray, string? p
///
/// The output image file path.
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveWebp(string imageFilename, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveWebp(string imageFilename, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
- SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageFilename, SKEncodedImageFormat.Webp, pdfStream, leaveOpen, password, page, options);
}
///
@@ -489,144 +257,29 @@ public static void SaveWebp(string imageFilename, Stream pdfStream, string? pass
///
/// The output image stream.
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static void SaveWebp(Stream imageStream, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- }
- #endregion
-
- #region Internal save impl
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- internal static void SaveImpl(string imageFilename, SKEncodedImageFormat format, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// Additional options for PDF rendering.
+ public static void SaveWebp(Stream imageStream, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
- if (imageFilename == null)
- throw new ArgumentNullException(nameof(imageFilename));
-
- using var fileStream = new FileStream(imageFilename, FileMode.Create, FileAccess.Write);
- SaveImpl(fileStream, format, pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ SaveImpl(imageStream, SKEncodedImageFormat.Webp, pdfStream, leaveOpen, password, page, options);
}
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- internal static void SaveImpl(Stream imageStream, SKEncodedImageFormat format, string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- if (imageStream == null)
- throw new ArgumentNullException(nameof(imageStream));
-
- using var bitmap = ToImage(pdfAsBase64String, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- bitmap.Encode(imageStream, format, 100);
- }
-
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- internal static void SaveImpl(string imageFilename, SKEncodedImageFormat format, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- if (imageFilename == null)
- throw new ArgumentNullException(nameof(imageFilename));
-
- using var fileStream = new FileStream(imageFilename, FileMode.Create, FileAccess.Write);
- SaveImpl(fileStream, format, pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- }
-
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- internal static void SaveImpl(Stream imageStream, SKEncodedImageFormat format, byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- if (imageStream == null)
- throw new ArgumentNullException(nameof(imageStream));
-
- using var bitmap = ToImage(pdfAsByteArray, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- bitmap.Encode(imageStream, format, 100);
- }
-
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- internal static void SaveImpl(string filename, SKEncodedImageFormat format, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- using var fileStream = new FileStream(filename, FileMode.Create, FileAccess.Write);
- SaveImpl(fileStream, format, pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- }
-
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- internal static void SaveImpl(Stream stream, SKEncodedImageFormat format, Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- using var bitmap = ToImage(pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- bitmap.Encode(stream, format, 100);
- }
- #endregion
-
- #region ToImage
///
/// Renders a single page of a given PDF into an image.
///
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
+ /// Additional options for PDF rendering.
/// The converted PDF page as an image.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SKBitmap ToImage(string pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ public static SKBitmap ToImage(string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
if (pdfAsBase64String == null)
throw new ArgumentNullException(nameof(pdfAsBase64String));
- return ToImage(Convert.FromBase64String(pdfAsBase64String), password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ return ToImage(Convert.FromBase64String(pdfAsBase64String), password, page, options);
}
///
@@ -635,23 +288,13 @@ public static SKBitmap ToImage(string pdfAsBase64String, string? password = null
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
+ /// Additional options for PDF rendering.
/// The converted PDF page as an image.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SKBitmap ToImage(byte[] pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ public static SKBitmap ToImage(
+ byte[] pdfAsByteArray,
+ string? password = null,
+ int page = 0,
+ RenderOptions options = default)
{
if (pdfAsByteArray == null)
throw new ArgumentNullException(nameof(pdfAsByteArray));
@@ -659,34 +302,7 @@ public static SKBitmap ToImage(byte[] pdfAsByteArray, string? password = null, i
// Base64 string -> byte[] -> MemoryStream
using var pdfStream = new MemoryStream(pdfAsByteArray, false);
- return ToImage(pdfStream, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
- }
-
- ///
- /// Renders a single page of a given PDF into an image.
- ///
- /// The PDF as a stream.
- /// The password for opening the PDF. Use if no password is needed.
- /// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF page as an image.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SKBitmap ToImage(Stream pdfStream, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- return ToImage(pdfStream, false, password, page, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ return ToImage(pdfStream, false, password, page, options);
}
///
@@ -696,23 +312,9 @@ public static SKBitmap ToImage(Stream pdfStream, string? password = null, int pa
/// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
/// The specific page to be converted.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the desired . Use if the original width should be used.
- /// The height of the desired . Use if the original height should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
+ /// Additional options for PDF rendering.
/// The rendered PDF page as an image.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SKBitmap ToImage(Stream pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ public static SKBitmap ToImage(Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
{
if (pdfStream == null)
throw new ArgumentNullException(nameof(pdfStream));
@@ -720,20 +322,23 @@ public static SKBitmap ToImage(Stream pdfStream, bool leaveOpen, string? passwor
if (page < 0)
throw new ArgumentOutOfRangeException(nameof(page), "The page number must be 0 or greater.");
+ if (options == default)
+ options = new();
+
// correct the width and height for the given dpi
// but only if both width and height are not specified (so the original sizes are corrected)
- var correctFromDpi = width == null && height == null;
+ var correctFromDpi = options.Width == null && options.Height == null;
NativeMethods.FPDF renderFlags = default;
- if (withAnnotations)
+ if (options.WithAnnotations)
renderFlags |= NativeMethods.FPDF.ANNOT;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Text))
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Text))
renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHTEXT;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Images))
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Images))
renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHIMAGE;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Paths))
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Paths))
renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHPATH;
// Stream -> Internals.PdfDocument
@@ -742,72 +347,39 @@ public static SKBitmap ToImage(Stream pdfStream, bool leaveOpen, string? passwor
if (page >= pdfDocument.PageSizes.Count)
throw new ArgumentOutOfRangeException(nameof(page), $"The page number {page} does not exist. Highest page number available is {pdfDocument.PageSizes.Count - 1}.");
+ var currentWidth = (float?)options.Width;
+ var currentHeight = (float?)options.Height;
var pageSize = pdfDocument.PageSizes[page];
// correct aspect ratio if requested
- if (withAspectRatio)
- AdjustForAspectRatio(ref width, ref height, pageSize);
+ if (options.WithAspectRatio)
+ AdjustForAspectRatio(ref currentWidth, ref currentHeight, pageSize);
// Internals.PdfDocument -> Image
- return pdfDocument.Render(page, width ?? (int)pageSize.Width, height ?? (int)pageSize.Height, dpi, dpi, rotation, renderFlags, withFormFill, correctFromDpi, backgroundColor ?? SKColors.White);
+ return pdfDocument.Render(page, currentWidth ?? pageSize.Width, currentHeight ?? pageSize.Height, options.Dpi, options.Dpi, options.Rotation, renderFlags, options.WithFormFill, correctFromDpi, options.BackgroundColor ?? SKColors.White, options.Bounds);
}
- #endregion
- #region ToImages
///
- /// Renders all pages of a given PDF into images.
+ /// Returns the page count of a given PDF.
///
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IEnumerable ToImages(string pdfAsBase64String, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// The page count of the given PDF.
+ public static int GetPageCount(string pdfAsBase64String, string? password = null)
{
if (pdfAsBase64String == null)
throw new ArgumentNullException(nameof(pdfAsBase64String));
- foreach (var image in ToImages(Convert.FromBase64String(pdfAsBase64String), password, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor))
- {
- yield return image;
- }
+ return GetPageCount(Convert.FromBase64String(pdfAsBase64String), password);
}
///
- /// Renders all pages of a given PDF into images.
+ /// Returns the page count of a given PDF.
///
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IEnumerable ToImages(byte[] pdfAsByteArray, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// The page count of the given PDF.
+ public static int GetPageCount(byte[] pdfAsByteArray, string? password = null)
{
if (pdfAsByteArray == null)
throw new ArgumentNullException(nameof(pdfAsByteArray));
@@ -815,156 +387,49 @@ public static IEnumerable ToImages(byte[] pdfAsByteArray, string? pass
// Base64 string -> byte[] -> MemoryStream
using var pdfStream = new MemoryStream(pdfAsByteArray, false);
- foreach (var image in ToImages(pdfStream, password, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor))
- {
- yield return image;
- }
- }
-
- ///
- /// Renders all pages of a given PDF into images.
- ///
- /// The PDF as a stream.
- /// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IEnumerable ToImages(Stream pdfStream, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
- {
- return ToImages(pdfStream, false, password, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor);
+ return GetPageCount(pdfStream, false, password);
}
///
- /// Renders all pages of a given PDF into images.
+ /// Returns the page count of a given PDF.
///
/// The PDF as a stream.
/// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IEnumerable ToImages(Stream pdfStream, bool leaveOpen, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null)
+ /// The page count of the given PDF.
+ public static int GetPageCount(Stream pdfStream, bool leaveOpen = false, string? password = null)
{
if (pdfStream == null)
throw new ArgumentNullException(nameof(pdfStream));
- // correct the width and height for the given dpi
- // but only if both width and height are not specified (so the original sizes are corrected)
- var correctFromDpi = width == null && height == null;
-
- NativeMethods.FPDF renderFlags = default;
-
- if (withAnnotations)
- renderFlags |= NativeMethods.FPDF.ANNOT;
-
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Text))
- renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHTEXT;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Images))
- renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHIMAGE;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Paths))
- renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHPATH;
-
- // Stream -> Internals.PdfDocument
using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen);
- for (int i = 0; i < pdfDocument.PageSizes.Count; i++)
- {
- var currentWidth = width;
- var currentHeight = height;
- var pageSize = pdfDocument.PageSizes[i];
-
- // correct aspect ratio if requested
- if (withAspectRatio)
- AdjustForAspectRatio(ref currentWidth, ref currentHeight, pageSize);
-
- // Internals.PdfDocument -> Image
- yield return pdfDocument.Render(i, currentWidth ?? (int)pageSize.Width, currentHeight ?? (int)pageSize.Height, dpi, dpi, rotation, renderFlags, withFormFill, correctFromDpi, backgroundColor ?? SKColors.White);
- }
+ return pdfDocument.PageSizes.Count;
}
- #endregion
- #region ToImagesAsnyc
-#if NET6_0_OR_GREATER
///
- /// Renders all pages of a given PDF into images.
+ /// Returns the PDF page size for a given page number.
///
/// The PDF encoded as Base64.
- /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The specific page to query the size for.
/// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
- public static async IAsyncEnumerable ToImagesAsync(string pdfAsBase64String, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ /// The page size containing width and height.
+ public static SizeF GetPageSize(string pdfAsBase64String, int page, string? password = null)
{
if (pdfAsBase64String == null)
throw new ArgumentNullException(nameof(pdfAsBase64String));
- await foreach (var image in ToImagesAsync(Convert.FromBase64String(pdfAsBase64String), password, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor, cancellationToken))
- {
- yield return image;
- }
+ return GetPageSize(Convert.FromBase64String(pdfAsBase64String), page, password);
}
///
- /// Renders all pages of a given PDF into images.
+ /// Returns the PDF page size for a given page number.
///
/// The PDF as a byte array.
- /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The specific page to query the size for.
/// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static async IAsyncEnumerable ToImagesAsync(byte[] pdfAsByteArray, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ /// The page size containing width and height.
+ public static SizeF GetPageSize(byte[] pdfAsByteArray, int page, string? password = null)
{
if (pdfAsByteArray == null)
throw new ArgumentNullException(nameof(pdfAsByteArray));
@@ -972,142 +437,51 @@ public static async IAsyncEnumerable ToImagesAsync(byte[] pdfAsByteArr
// Base64 string -> byte[] -> MemoryStream
using var pdfStream = new MemoryStream(pdfAsByteArray, false);
- await foreach (var image in ToImagesAsync(pdfStream, password, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor, cancellationToken))
- {
- yield return image;
- }
- }
-
- ///
- /// Renders all pages of a given PDF into images.
- ///
- /// The PDF as a stream.
- /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
- /// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
- {
- await foreach (var image in ToImagesAsync(pdfStream, false, password, dpi, width, height, withAnnotations, withFormFill, withAspectRatio, rotation, antiAliasing, backgroundColor, cancellationToken))
- {
- yield return image;
- }
+ return GetPageSize(pdfStream, false, page, password);
}
///
- /// Renders all pages of a given PDF into images.
+ /// Returns the PDF page size for a given page number.
///
/// The PDF as a stream.
/// to leave the open after the PDF document is loaded; otherwise, .
- /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
+ /// The specific page to query the size for.
/// The password for opening the PDF. Use if no password is needed.
- /// The DPI scaling to use for rasterization of the PDF.
- /// The width of the all pages. Use if the original width (per page) should be used.
- /// The height of all pages. Use if the original height (per page) should be used.
- /// Specifies whether annotations be rendered.
- /// Specifies whether form filling will be rendered.
- /// Specifies that or should be adjusted for aspect ratio (either one must be ).
- /// Specifies the rotation at 90 degree intervals.
- /// Specifies which parts of the PDF should be anti-aliasing for rendering.
- /// Specifies the background color. Defaults to .
- /// The rendered PDF pages as images.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, bool leaveOpen, string? password = null, int dpi = 300, int? width = null, int? height = null, bool withAnnotations = false, bool withFormFill = false, bool withAspectRatio = false, PdfRotation rotation = PdfRotation.Rotate0, PdfAntiAliasing antiAliasing = PdfAntiAliasing.All, SKColor? backgroundColor = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ /// The page size containing width and height.
+ public static SizeF GetPageSize(Stream pdfStream, bool leaveOpen = false, int page = 0, string? password = null)
{
if (pdfStream == null)
throw new ArgumentNullException(nameof(pdfStream));
- // correct the width and height for the given dpi
- // but only if both width and height are not specified (so the original sizes are corrected)
- var correctFromDpi = width == null && height == null;
-
- NativeMethods.FPDF renderFlags = default;
-
- if (withAnnotations)
- renderFlags |= NativeMethods.FPDF.ANNOT;
-
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Text))
- renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHTEXT;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Images))
- renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHIMAGE;
- if (!antiAliasing.HasFlag(PdfAntiAliasing.Paths))
- renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHPATH;
-
- // Stream -> Internals.PdfDocument
- using var pdfDocument = await Task.Run(() => PdfDocument.Load(pdfStream, password, !leaveOpen), cancellationToken);
-
- for (int i = 0; i < pdfDocument.PageSizes.Count; i++)
- {
- cancellationToken.ThrowIfCancellationRequested();
-
- var currentWidth = width;
- var currentHeight = height;
- var pageSize = pdfDocument.PageSizes[i];
+ if (page < 0)
+ throw new ArgumentOutOfRangeException(nameof(page), "The page number must be 0 or greater.");
- // correct aspect ratio if requested
- if (withAspectRatio)
- AdjustForAspectRatio(ref currentWidth, ref currentHeight, pageSize);
+ using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen);
- // Internals.PdfDocument -> Image
- yield return await Task.Run(() => pdfDocument.Render(i, currentWidth ?? (int)pageSize.Width, currentHeight ?? (int)pageSize.Height, dpi, dpi, rotation, renderFlags, withFormFill, correctFromDpi, backgroundColor ?? SKColors.White), cancellationToken);
- }
+ return pdfDocument.PageSizes[page];
}
-#endif
- #endregion
- #region GetPageCount
///
- /// Returns the page count of a given PDF.
+ /// Returns the sizes of all PDF pages.
///
/// The PDF encoded as Base64.
/// The password for opening the PDF. Use if no password is needed.
- /// The page count of the given PDF.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static int GetPageCount(string pdfAsBase64String, string? password = null)
+ /// The page sizes containing width and height.
+ public static IList GetPageSizes(string pdfAsBase64String, string? password = null)
{
if (pdfAsBase64String == null)
throw new ArgumentNullException(nameof(pdfAsBase64String));
- return GetPageCount(Convert.FromBase64String(pdfAsBase64String), password);
+ return GetPageSizes(Convert.FromBase64String(pdfAsBase64String), password);
}
///
- /// Returns the page count of a given PDF.
+ /// Returns the sizes of all PDF pages.
///
/// The PDF as a byte array.
/// The password for opening the PDF. Use if no password is needed.
- /// The page count of the given PDF.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static int GetPageCount(byte[] pdfAsByteArray, string? password = null)
+ /// The page sizes containing width and height.
+ public static IList GetPageSizes(byte[] pdfAsByteArray, string? password = null)
{
if (pdfAsByteArray == null)
throw new ArgumentNullException(nameof(pdfAsByteArray));
@@ -1115,86 +489,52 @@ public static int GetPageCount(byte[] pdfAsByteArray, string? password = null)
// Base64 string -> byte[] -> MemoryStream
using var pdfStream = new MemoryStream(pdfAsByteArray, false);
- return GetPageCount(pdfStream, password);
- }
-
- ///
- /// Returns the page count of a given PDF.
- ///
- /// The PDF as a stream.
- /// The password for opening the PDF. Use if no password is needed.
- /// The page count of the given PDF.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static int GetPageCount(Stream pdfStream, string? password = null)
- {
- return GetPageCount(pdfStream, false, password);
+ return GetPageSizes(pdfStream, false, password);
}
///
- /// Returns the page count of a given PDF.
+ /// Returns the sizes of all PDF pages.
///
/// The PDF as a stream.
/// to leave the open after the PDF document is loaded; otherwise, .
/// The password for opening the PDF. Use if no password is needed.
- /// The page count of the given PDF.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static int GetPageCount(Stream pdfStream, bool leaveOpen, string? password = null)
+ /// The page sizes containing width and height.
+ public static IList GetPageSizes(Stream pdfStream, bool leaveOpen = false, string? password = null)
{
if (pdfStream == null)
throw new ArgumentNullException(nameof(pdfStream));
using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen);
- return pdfDocument.PageSizes.Count;
+ return pdfDocument.PageSizes.ToList().AsReadOnly();
}
- #endregion
- #region GetPageSize
///
- /// Returns the PDF page size for a given page number.
+ /// Renders all pages of a given PDF into images.
///
/// The PDF encoded as Base64.
- /// The specific page to query the size for.
/// The password for opening the PDF. Use if no password is needed.
- /// The page size containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SizeF GetPageSize(string pdfAsBase64String, int page, string? password = null)
+ /// Additional options for PDF rendering.
+ /// The rendered PDF pages as images.
+ public static IEnumerable ToImages(string pdfAsBase64String, string? password = null, RenderOptions options = default)
{
if (pdfAsBase64String == null)
throw new ArgumentNullException(nameof(pdfAsBase64String));
- return GetPageSize(Convert.FromBase64String(pdfAsBase64String), page, password);
+ foreach (var image in ToImages(Convert.FromBase64String(pdfAsBase64String), password, options))
+ {
+ yield return image;
+ }
}
///
- /// Returns the PDF page size for a given page number.
+ /// Renders all pages of a given PDF into images.
///
/// The PDF as a byte array.
- /// The specific page to query the size for.
/// The password for opening the PDF. Use if no password is needed.
- /// The page size containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SizeF GetPageSize(byte[] pdfAsByteArray, int page, string? password = null)
+ /// Additional options for PDF rendering.
+ /// The rendered PDF pages as images.
+ public static IEnumerable ToImages(byte[] pdfAsByteArray, string? password = null, RenderOptions options = default)
{
if (pdfAsByteArray == null)
throw new ArgumentNullException(nameof(pdfAsByteArray));
@@ -1202,89 +542,91 @@ public static SizeF GetPageSize(byte[] pdfAsByteArray, int page, string? passwor
// Base64 string -> byte[] -> MemoryStream
using var pdfStream = new MemoryStream(pdfAsByteArray, false);
- return GetPageSize(pdfStream, page, password);
- }
-
- ///
- /// Returns the PDF page size for a given page number.
- ///
- /// The PDF as a stream.
- /// The specific page to query the size for.
- /// The password for opening the PDF. Use if no password is needed.
- /// The page size containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SizeF GetPageSize(Stream pdfStream, int page, string? password = null)
- {
- return GetPageSize(pdfStream, false, page, password);
+ foreach (var image in ToImages(pdfStream, false, password, options))
+ {
+ yield return image;
+ }
}
///
- /// Returns the PDF page size for a given page number.
+ /// Renders all pages of a given PDF into images.
///
/// The PDF as a stream.
/// to leave the open after the PDF document is loaded; otherwise, .
- /// The specific page to query the size for.
/// The password for opening the PDF. Use if no password is needed.
- /// The page size containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static SizeF GetPageSize(Stream pdfStream, bool leaveOpen, int page, string? password = null)
+ /// Additional options for PDF rendering.
+ /// The rendered PDF pages as images.
+ public static IEnumerable ToImages(Stream pdfStream, bool leaveOpen = false, string? password = null, RenderOptions options = default)
{
if (pdfStream == null)
throw new ArgumentNullException(nameof(pdfStream));
- if (page < 0)
- throw new ArgumentOutOfRangeException(nameof(page), "The page number must be 0 or greater.");
+ if (options == default)
+ options = new();
+
+ // correct the width and height for the given dpi
+ // but only if both width and height are not specified (so the original sizes are corrected)
+ var correctFromDpi = options.Width == null && options.Height == null;
+
+ NativeMethods.FPDF renderFlags = default;
+
+ if (options.WithAnnotations)
+ renderFlags |= NativeMethods.FPDF.ANNOT;
+
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Text))
+ renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHTEXT;
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Images))
+ renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHIMAGE;
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Paths))
+ renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHPATH;
+ // Stream -> Internals.PdfDocument
using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen);
- return pdfDocument.PageSizes[page];
+ for (int i = 0; i < pdfDocument.PageSizes.Count; i++)
+ {
+ var currentWidth = (float?)options.Width;
+ var currentHeight = (float?)options.Height;
+ var pageSize = pdfDocument.PageSizes[i];
+
+ // correct aspect ratio if requested
+ if (options.WithAspectRatio)
+ AdjustForAspectRatio(ref currentWidth, ref currentHeight, pageSize);
+
+ // Internals.PdfDocument -> Image
+ yield return pdfDocument.Render(i, currentWidth ?? pageSize.Width, currentHeight ?? pageSize.Height, options.Dpi, options.Dpi, options.Rotation, renderFlags, options.WithFormFill, correctFromDpi, options.BackgroundColor ?? SKColors.White, options.Bounds);
+ }
}
- #endregion
- #region GetPageSizes
+#if NET6_0_OR_GREATER
///
- /// Returns the sizes of all PDF pages.
+ /// Renders all pages of a given PDF into images.
///
/// The PDF encoded as Base64.
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
/// The password for opening the PDF. Use if no password is needed.
- /// The page sizes containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IList GetPageSizes(string pdfAsBase64String, string? password = null)
+ /// Additional options for PDF rendering.
+ /// The rendered PDF pages as images.
+ public static async IAsyncEnumerable ToImagesAsync(string pdfAsBase64String, string? password = null, RenderOptions options = default, [EnumeratorCancellation] CancellationToken cancellationToken = default)
{
if (pdfAsBase64String == null)
throw new ArgumentNullException(nameof(pdfAsBase64String));
- return GetPageSizes(Convert.FromBase64String(pdfAsBase64String), password);
+ await foreach (var image in ToImagesAsync(Convert.FromBase64String(pdfAsBase64String), password, options, cancellationToken))
+ {
+ yield return image;
+ }
}
///
- /// Returns the sizes of all PDF pages.
+ /// Renders all pages of a given PDF into images.
///
/// The PDF as a byte array.
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
/// The password for opening the PDF. Use if no password is needed.
- /// The page sizes containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IList GetPageSizes(byte[] pdfAsByteArray, string? password = null)
+ /// Additional options for PDF rendering.
+ /// The rendered PDF pages as images.
+ public static async IAsyncEnumerable ToImagesAsync(byte[] pdfAsByteArray, string? password = null, RenderOptions options = default, [EnumeratorCancellation] CancellationToken cancellationToken = default)
{
if (pdfAsByteArray == null)
throw new ArgumentNullException(nameof(pdfAsByteArray));
@@ -1292,59 +634,123 @@ public static IList GetPageSizes(byte[] pdfAsByteArray, string? password
// Base64 string -> byte[] -> MemoryStream
using var pdfStream = new MemoryStream(pdfAsByteArray, false);
- return GetPageSizes(pdfStream, password);
+ await foreach (var image in ToImagesAsync(pdfStream, false, password, options, cancellationToken))
+ {
+ yield return image;
+ }
}
///
- /// Returns the sizes of all PDF pages.
+ /// Renders all pages of a given PDF into images.
///
/// The PDF as a stream.
+ /// to leave the open after the PDF document is loaded; otherwise, .
+ /// The cancellation token to cancel the conversion. Please note that an ongoing rendering cannot be cancelled (the next page will not be rendered though).
/// The password for opening the PDF. Use if no password is needed.
- /// The page sizes containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
+ /// Additional options for PDF rendering.
+ /// The rendered PDF pages as images.
+ public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, bool leaveOpen = false, string? password = null, RenderOptions options = default, [EnumeratorCancellation] CancellationToken cancellationToken = default)
+ {
+ if (pdfStream == null)
+ throw new ArgumentNullException(nameof(pdfStream));
+
+ if (options == default)
+ options = new();
+
+ // correct the width and height for the given dpi
+ // but only if both width and height are not specified (so the original sizes are corrected)
+ var correctFromDpi = options.Width == null && options.Height == null;
+
+ NativeMethods.FPDF renderFlags = default;
+
+ if (options.WithAnnotations)
+ renderFlags |= NativeMethods.FPDF.ANNOT;
+
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Text))
+ renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHTEXT;
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Images))
+ renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHIMAGE;
+ if (!options.AntiAliasing.HasFlag(PdfAntiAliasing.Paths))
+ renderFlags |= NativeMethods.FPDF.RENDER_NO_SMOOTHPATH;
+
+ // Stream -> Internals.PdfDocument
+ using var pdfDocument = await Task.Run(() => PdfDocument.Load(pdfStream, password, !leaveOpen), cancellationToken);
+
+ for (int i = 0; i < pdfDocument.PageSizes.Count; i++)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+
+ var currentWidth = (float?)options.Width;
+ var currentHeight = (float?)options.Height;
+ var pageSize = pdfDocument.PageSizes[i];
+
+ // correct aspect ratio if requested
+ if (options.WithAspectRatio)
+ AdjustForAspectRatio(ref currentWidth, ref currentHeight, pageSize);
+
+ // Internals.PdfDocument -> Image
+ yield return await Task.Run(() => pdfDocument.Render(i, currentWidth ?? pageSize.Width, currentHeight ?? pageSize.Height, options.Dpi, options.Dpi, options.Rotation, renderFlags, options.WithFormFill, correctFromDpi, options.BackgroundColor ?? SKColors.White, options.Bounds), cancellationToken);
+ }
+ }
#endif
- public static IList GetPageSizes(Stream pdfStream, string? password = null)
+
+ internal static void SaveImpl(string imageFilename, SKEncodedImageFormat format, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- return GetPageSizes(pdfStream, false, password);
+ if (imageFilename == null)
+ throw new ArgumentNullException(nameof(imageFilename));
+
+ using var fileStream = new FileStream(imageFilename, FileMode.Create, FileAccess.Write);
+ SaveImpl(fileStream, format, pdfAsBase64String, password, page, options);
}
- ///
- /// Returns the sizes of all PDF pages.
- ///
- /// The PDF as a stream.
- /// to leave the open after the PDF document is loaded; otherwise, .
- /// The password for opening the PDF. Use if no password is needed.
- /// The page sizes containing width and height.
-#if NET6_0_OR_GREATER
- [SupportedOSPlatform("Windows")]
- [SupportedOSPlatform("Linux")]
- [SupportedOSPlatform("macOS")]
- [SupportedOSPlatform("Android31.0")]
-#endif
- public static IList GetPageSizes(Stream pdfStream, bool leaveOpen, string? password = null)
+ internal static void SaveImpl(Stream imageStream, SKEncodedImageFormat format, string pdfAsBase64String, string? password = null, int page = 0, RenderOptions options = default)
{
- if (pdfStream == null)
- throw new ArgumentNullException(nameof(pdfStream));
+ if (imageStream == null)
+ throw new ArgumentNullException(nameof(imageStream));
- using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen);
+ using var bitmap = ToImage(pdfAsBase64String, password, page, options);
+ bitmap.Encode(imageStream, format, 100);
+ }
- return pdfDocument.PageSizes.ToList().AsReadOnly();
+ internal static void SaveImpl(string imageFilename, SKEncodedImageFormat format, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
+ {
+ if (imageFilename == null)
+ throw new ArgumentNullException(nameof(imageFilename));
+
+ using var fileStream = new FileStream(imageFilename, FileMode.Create, FileAccess.Write);
+ SaveImpl(fileStream, format, pdfAsByteArray, password, page, options);
+ }
+
+ internal static void SaveImpl(string filename, SKEncodedImageFormat format, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
+ {
+ using var fileStream = new FileStream(filename, FileMode.Create, FileAccess.Write);
+ SaveImpl(fileStream, format, pdfStream, leaveOpen, password, page, options);
+ }
+
+ internal static void SaveImpl(Stream imageStream, SKEncodedImageFormat format, byte[] pdfAsByteArray, string? password = null, int page = 0, RenderOptions options = default)
+ {
+ if (imageStream == null)
+ throw new ArgumentNullException(nameof(imageStream));
+
+ using var bitmap = ToImage(pdfAsByteArray, password, page, options);
+ bitmap.Encode(imageStream, format, 100);
+ }
+
+ internal static void SaveImpl(Stream stream, SKEncodedImageFormat format, Stream pdfStream, bool leaveOpen = false, string? password = null, int page = 0, RenderOptions options = default)
+ {
+ using var bitmap = ToImage(pdfStream, leaveOpen, password, page, options);
+ bitmap.Encode(stream, format, 100);
}
- #endregion
- private static void AdjustForAspectRatio(ref int? width, ref int? height, SizeF pageSize)
+ private static void AdjustForAspectRatio(ref float? width, ref float? height, SizeF pageSize)
{
if (width == null && height != null)
{
- width = (int)Math.Round((pageSize.Width / pageSize.Height) * height.Value);
+ width = pageSize.Width / pageSize.Height * height.Value;
}
else if (width != null && height == null)
{
- height = (int)Math.Round((pageSize.Height / pageSize.Width) * width.Value);
+ height = pageSize.Height / pageSize.Width * width.Value;
}
}
}
diff --git a/src/PDFtoImage/Internals/NativeMethods.cs b/src/PDFtoImage/Internals/NativeMethods.cs
index 4d29841b..21c533b4 100644
--- a/src/PDFtoImage/Internals/NativeMethods.cs
+++ b/src/PDFtoImage/Internals/NativeMethods.cs
@@ -2,6 +2,7 @@
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using System.Security;
namespace PDFtoImage.Internals
{
@@ -178,11 +179,11 @@ public static void FPDF_ClosePage(IntPtr page)
}
}
- public static void FPDF_RenderPageBitmap(IntPtr bitmapHandle, IntPtr page, int start_x, int start_y, int size_x, int size_y, int rotate, FPDF flags)
+ public static void FPDF_RenderPageBitmap(IntPtr bitmap, IntPtr page, int start_x, int start_y, int size_x, int size_y, int rotate, FPDF flags)
{
lock (LockString)
{
- Imports.FPDF_RenderPageBitmap(bitmapHandle, page, start_x, start_y, size_x, size_y, rotate, flags);
+ Imports.FPDF_RenderPageBitmap(bitmap, page, start_x, start_y, size_x, size_y, rotate, flags);
}
}
@@ -526,7 +527,7 @@ private static partial class Imports
public static extern void FPDF_ClosePage(IntPtr page);
[DllImport("pdfium", CallingConvention = CallingConvention.Cdecl)]
- public static extern void FPDF_RenderPageBitmap(IntPtr bitmapHandle, IntPtr page, int start_x, int start_y, int size_x, int size_y, int rotate, FPDF flags);
+ public static extern void FPDF_RenderPageBitmap(IntPtr bitmap, IntPtr page, int start_x, int start_y, int size_x, int size_y, int rotate, FPDF flags);
[DllImport("pdfium", CallingConvention = CallingConvention.Cdecl)]
public static extern int FPDF_GetPageSizeByIndex(IntPtr document, int page_index, out double width, out double height);
diff --git a/src/PDFtoImage/Internals/PdfDocument.cs b/src/PDFtoImage/Internals/PdfDocument.cs
index d299de70..ff6b6a58 100644
--- a/src/PDFtoImage/Internals/PdfDocument.cs
+++ b/src/PDFtoImage/Internals/PdfDocument.cs
@@ -60,8 +60,9 @@ private PdfDocument(Stream stream, string? password, bool disposeStream)
/// Render form fills.
/// Change and depending on the given and .
/// The background color used for the output.
+ /// Specifies the bounds for the page relative to . This can be used for clipping (bounds inside of page) or additional margins (bounds outside of page).
/// The rendered image.
- public SKBitmap Render(int page, int width, int height, float dpiX, float dpiY, PdfRotation rotate, NativeMethods.FPDF flags, bool renderFormFill, bool correctFromDpi, SKColor backgroundColor)
+ public SKBitmap Render(int page, float width, float height, float dpiX, float dpiY, PdfRotation rotate, NativeMethods.FPDF flags, bool renderFormFill, bool correctFromDpi, SKColor backgroundColor, RectangleF? bounds)
{
if (_disposed)
throw new ObjectDisposedException(GetType().Name);
@@ -72,23 +73,76 @@ public SKBitmap Render(int page, int width, int height, float dpiX, float dpiY,
(dpiX, dpiY) = (dpiY, dpiX);
}
+ var pageWidth = PageSizes[page].Width;
+ var pageHeight = PageSizes[page].Height;
+
if (correctFromDpi)
{
- width = width * (int)dpiX / 72;
- height = height * (int)dpiY / 72;
+ width *= dpiX / 72f;
+ height *= dpiY / 72f;
+
+ pageWidth *= dpiX / 72f;
+ pageHeight *= dpiY / 72f;
+
+ if (bounds != null)
+ {
+ bounds = new RectangleF(
+ bounds.Value.X * (dpiX / 72f),
+ bounds.Value.Y * (dpiY / 72f),
+ bounds.Value.Width * (dpiX / 72f),
+ bounds.Value.Height * (dpiY / 72f)
+ );
+ }
}
- var bitmap = new SKBitmap(width, height, SKColorType.Bgra8888, SKAlphaType.Premul);
- var handle = NativeMethods.FPDFBitmap_CreateEx(width, height, NativeMethods.FPDFBitmap.BGRA, bitmap.GetPixels(), width * 4);
+ if (bounds != null)
+ {
+ if (rotate == PdfRotation.Rotate90)
+ {
+ bounds = new RectangleF(
+ width - bounds.Value.Height - bounds.Value.Y,
+ bounds.Value.X,
+ bounds.Value.Width,
+ bounds.Value.Height
+ );
+ }
+ else if (rotate == PdfRotation.Rotate270)
+ {
+ bounds = new RectangleF(
+ bounds.Value.Y,
+ height - bounds.Value.Width - bounds.Value.X,
+ bounds.Value.Width,
+ bounds.Value.Height
+ );
+ }
+ else if (rotate == PdfRotation.Rotate180)
+ {
+ bounds = new RectangleF(
+ width - bounds.Value.Width - bounds.Value.X,
+ height - bounds.Value.Height - bounds.Value.Y,
+ bounds.Value.Width,
+ bounds.Value.Height
+ );
+ }
+ }
+
+ width = (float)Math.Round(width);
+ height = (float)Math.Round(height);
+
+ var bitmap = new SKBitmap((int)width, (int)height, SKColorType.Bgra8888, SKAlphaType.Premul);
+ var handle = NativeMethods.FPDFBitmap_CreateEx((int)width, (int)height, NativeMethods.FPDFBitmap.BGRA, bitmap.GetPixels(), (int)width * 4);
try
{
- NativeMethods.FPDFBitmap_FillRect(handle, 0, 0, width, height, (uint)backgroundColor);
+ NativeMethods.FPDFBitmap_FillRect(handle, 0, 0, (int)width, (int)height, (uint)backgroundColor);
bool success = _file!.RenderPDFPageToBitmap(
page,
handle,
- 0, 0, width, height,
+ bounds != null ? -(int)Math.Round(bounds.Value.X * (pageWidth / bounds.Value.Width)) : 0,
+ bounds != null ? -(int)Math.Round(bounds.Value.Y * (pageHeight / bounds.Value.Height)) : 0,
+ bounds != null ? (int)Math.Round(pageWidth * (width / bounds.Value.Width)) : (int)width,
+ bounds != null ? (int)Math.Round(pageHeight * (height / bounds.Value.Height)) : (int)height,
(int)rotate,
flags,
renderFormFill
@@ -106,7 +160,6 @@ public SKBitmap Render(int page, int width, int height, float dpiX, float dpiY,
}
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- /// 2
public void Dispose()
{
Dispose(true);
@@ -119,11 +172,8 @@ private void Dispose(bool disposing)
{
if (!_disposed && disposing)
{
- if (_file != null)
- {
- _file.Dispose();
- _file = null;
- }
+ _file?.Dispose();
+ _file = null;
_disposed = true;
}
diff --git a/src/PDFtoImage/PDFtoImage.csproj b/src/PDFtoImage/PDFtoImage.csproj
index 871cbf4f..c67decb1 100644
--- a/src/PDFtoImage/PDFtoImage.csproj
+++ b/src/PDFtoImage/PDFtoImage.csproj
@@ -13,8 +13,8 @@
- 3.1.0
-
+ 4.0.0
+ preview
David Sungaila
false
MIT
@@ -22,9 +22,8 @@
https://github.com/sungaila/PDFtoImage
https://raw.githubusercontent.com/sungaila/PDFtoImage/master/etc/Icon_128.png
A .NET library to render PDF files into images.
- - Added support for Mono.
-- Added support for Unity.
-- Added support for UWP.
+ - Added optional parameter Bounds.
+- RenderOptions introduced for most API calls. This is a breaking change, see README for more information.
PDF Bitmap Image Convert Conversion C# PDFium SkiaSharp Skia PNG JPG JPEG WEBP Xamarin Android MonoAndroid MAUI wasm WebAssembly
https://github.com/sungaila/PDFtoImage.git
git
@@ -75,9 +74,9 @@
-
-
-
+
+
+
@@ -96,14 +95,14 @@
-
+
-
+
diff --git a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt
index 3236b830..932f121b 100644
--- a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt
@@ -1,46 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-PDFtoImage.Resource
-PDFtoImage.Resource.Attribute
-PDFtoImage.Resource.Resource() -> void
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -60,9 +47,64 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt
index 22f77390..932f121b 100644
--- a/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt
@@ -1,43 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -57,9 +47,64 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt
index 22f77390..932f121b 100644
--- a/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt
@@ -1,43 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -57,9 +47,64 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt
index 22f77390..932f121b 100644
--- a/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt
@@ -1,43 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -57,9 +47,64 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt
index 80946a18..9a4f382a 100644
--- a/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt
@@ -1,47 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -61,9 +47,71 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt
index c6f4503b..9a4f382a 100644
--- a/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt
@@ -1,50 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-PDFtoImage.Resource
-PDFtoImage.Resource.Attribute
-PDFtoImage.Resource.Resource() -> void
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -64,9 +47,71 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt
index 80946a18..9a4f382a 100644
--- a/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt
@@ -1,47 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -61,9 +47,71 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt
index d09ba1b3..9a4f382a 100644
--- a/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt
@@ -1,49 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-PDFtoImage.Resource
-PDFtoImage.Resource.Resource() -> void
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -63,9 +47,71 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> System.Collections.Generic.IList!
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> void
+static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, int page = 0, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
\ No newline at end of file
diff --git a/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt
index 80946a18..9a4f382a 100644
--- a/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt
+++ b/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt
@@ -1,47 +1,33 @@
#nullable enable
-PDFtoImage.Conversion
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
-static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(string! pdfAsBase64String, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
-static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> int
-static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen, int page, string? password = null) -> System.Drawing.SizeF
-static PDFtoImage.Conversion.GetPageSizes(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null) -> System.Collections.Generic.IList!
-static PDFtoImage.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
-static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
-static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.RenderOptions
+PDFtoImage.RenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.RenderOptions.AntiAliasing.init -> void
+PDFtoImage.RenderOptions.BackgroundColor.get -> SkiaSharp.SKColor?
+PDFtoImage.RenderOptions.BackgroundColor.init -> void
+PDFtoImage.RenderOptions.Bounds.get -> System.Drawing.RectangleF?
+PDFtoImage.RenderOptions.Bounds.init -> void
+PDFtoImage.RenderOptions.Dpi.get -> int
+PDFtoImage.RenderOptions.Dpi.init -> void
+PDFtoImage.RenderOptions.Height.get -> int?
+PDFtoImage.RenderOptions.Height.init -> void
+PDFtoImage.RenderOptions.RenderOptions() -> void
+PDFtoImage.RenderOptions.RenderOptions(int Dpi = 300, 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) -> void
+PDFtoImage.RenderOptions.Rotation.get -> PDFtoImage.PdfRotation
+PDFtoImage.RenderOptions.Rotation.init -> void
+PDFtoImage.RenderOptions.Width.get -> int?
+PDFtoImage.RenderOptions.Width.init -> void
+PDFtoImage.RenderOptions.WithAnnotations.get -> bool
+PDFtoImage.RenderOptions.WithAnnotations.init -> void
+PDFtoImage.RenderOptions.WithAspectRatio.get -> bool
+PDFtoImage.RenderOptions.WithAspectRatio.init -> void
+PDFtoImage.RenderOptions.WithFormFill.get -> bool
+PDFtoImage.RenderOptions.WithFormFill.init -> void
+PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
+PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate0 = 0 -> PDFtoImage.PdfRotation
PDFtoImage.PdfRotation.Rotate180 = 2 -> PDFtoImage.PdfRotation
@@ -61,9 +47,71 @@ PDFtoImage.Exceptions.PdfUnknownException
PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException
PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void
-PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Images = 2 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.Paths = 4 -> PDFtoImage.PdfAntiAliasing
-PDFtoImage.PdfAntiAliasing.All = PDFtoImage.PdfAntiAliasing.Text | PDFtoImage.PdfAntiAliasing.Images | PDFtoImage.PdfAntiAliasing.Paths -> PDFtoImage.PdfAntiAliasing
\ No newline at end of file
+PDFtoImage.Compatibility.Conversion
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveJpeg(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SavePng(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(string! imageFilename, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.SaveWebp(System.IO.Stream! imageStream, System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> void
+static PDFtoImage.Compatibility.Conversion.ToImage(byte[]! pdfAsByteArray, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(string! pdfAsBase64String, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImage(System.IO.Stream! pdfStream, string? password = null, int page = 0, int dpi = 300, 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) -> SkiaSharp.SKBitmap!
+static PDFtoImage.Compatibility.Conversion.ToImages(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImages(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Collections.Generic.IEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(string! pdfAsBase64String, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, bool leaveOpen, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+static PDFtoImage.Compatibility.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, string? password = null, int dpi = 300, 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.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable!
+PDFtoImage.Conversion
+static PDFtoImage.Conversion.GetPageCount(byte[]! pdfAsByteArray, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(string! pdfAsBase64String, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageCount(System.IO.Stream! pdfStream, bool leaveOpen = false, string? password = null) -> int
+static PDFtoImage.Conversion.GetPageSize(byte[]! pdfAsByteArray, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(string! pdfAsBase64String, int page, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSize(System.IO.Stream! pdfStream, bool leaveOpen = false, int page = 0, string? password = null) -> System.Drawing.SizeF
+static PDFtoImage.Conversion.GetPageSizes(byte[]! pdfAsByteArray, string? password = null) -> System.Collections.Generic.IList