From a9817e020835b4f324e926d67f1dc6bf35684e8a Mon Sep 17 00:00:00 2001 From: David Sungaila Date: Thu, 14 Mar 2024 17:12:41 +0100 Subject: [PATCH] Add interface IRenderOptions --- src/PDFtoImage/IRenderOptions.cs | 66 +++++++++++++++++++ .../monoandroid10.0/PublicAPI.Shipped.txt | 23 +++++++ .../PublicAPI/net462/PublicAPI.Shipped.txt | 23 +++++++ .../PublicAPI/net471/PublicAPI.Shipped.txt | 23 +++++++ .../PublicAPI/net481/PublicAPI.Shipped.txt | 23 +++++++ .../PublicAPI/net6.0/PublicAPI.Shipped.txt | 23 +++++++ .../net7.0-android/PublicAPI.Shipped.txt | 23 +++++++ .../PublicAPI/net7.0/PublicAPI.Shipped.txt | 23 +++++++ .../net8.0-android/PublicAPI.Shipped.txt | 23 +++++++ .../PublicAPI/net8.0/PublicAPI.Shipped.txt | 23 +++++++ .../netstandard2.0/PublicAPI.Shipped.txt | 23 +++++++ src/PDFtoImage/RenderOptions.cs | 2 +- 12 files changed, 297 insertions(+), 1 deletion(-) create mode 100644 src/PDFtoImage/IRenderOptions.cs diff --git a/src/PDFtoImage/IRenderOptions.cs b/src/PDFtoImage/IRenderOptions.cs new file mode 100644 index 00000000..8f5513c8 --- /dev/null +++ b/src/PDFtoImage/IRenderOptions.cs @@ -0,0 +1,66 @@ +using SkiaSharp; +using System.Drawing; + +namespace PDFtoImage +{ + /// + /// Contains all relevant information to render a PDF page into an image. + /// + public interface IRenderOptions + { + /// + /// The DPI scaling to use for rasterization of the PDF. + /// + int Dpi { get; init; } + + /// + /// The width of the desired page. Use if the original width should be used. + /// + int? Width { get; init; } + + /// + /// The height of the desired page. Use if the original height should be used. + /// + int? Height { get; init; } + + /// + /// Specifies whether annotations be rendered. + /// + bool WithAnnotations { get; init; } + + /// + /// Specifies whether form filling will be rendered. + /// + bool WithFormFill { get; init; } + + /// + /// Specifies that or should be adjusted for aspect ratio (either one must be ). + /// + bool WithAspectRatio { get; init; } + + /// + /// Specifies the rotation at 90 degree intervals. + /// + PdfRotation Rotation { get; init; } + + /// + /// Specifies which parts of the PDF should be anti-aliasing for rendering. + /// + PdfAntiAliasing AntiAliasing { get; init; } + + /// + /// Specifies the background color. Defaults to . + /// + SKColor? BackgroundColor { get; init; } + + /// + /// 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). + /// + RectangleF? Bounds { get; init; } + + /// + /// Specifies that the PDF should be rendered as several segments and merged into the final image. This can help in cases where the output image is too large, causing corrupted images (e.g. missing text) or crashes. + /// + bool UseTiling { get; init; } + } +} \ No newline at end of file diff --git a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt index 63c1e1c3..73742c61 100644 --- a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt index 63c1e1c3..73742c61 100644 --- a/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt index 63c1e1c3..73742c61 100644 --- a/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt index 63c1e1c3..73742c61 100644 --- a/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt index 5c68200e..b85c3d45 100644 --- a/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt index 5c68200e..b85c3d45 100644 --- a/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net7.0-android/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt index 5c68200e..b85c3d45 100644 --- a/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt index 5c68200e..b85c3d45 100644 --- a/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt index 5c68200e..b85c3d45 100644 --- a/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt index 63c1e1c3..73742c61 100644 --- a/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt @@ -24,6 +24,29 @@ PDFtoImage.RenderOptions.WithFormFill.get -> bool PDFtoImage.RenderOptions.WithFormFill.init -> void PDFtoImage.RenderOptions.UseTiling.get -> bool PDFtoImage.RenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions +PDFtoImage.IRenderOptions.AntiAliasing.get -> PDFtoImage.PdfAntiAliasing +PDFtoImage.IRenderOptions.AntiAliasing.init -> void +PDFtoImage.IRenderOptions.BackgroundColor.get -> SkiaSharp.SKColor? +PDFtoImage.IRenderOptions.BackgroundColor.init -> void +PDFtoImage.IRenderOptions.Bounds.get -> System.Drawing.RectangleF? +PDFtoImage.IRenderOptions.Bounds.init -> void +PDFtoImage.IRenderOptions.Dpi.get -> int +PDFtoImage.IRenderOptions.Dpi.init -> void +PDFtoImage.IRenderOptions.Height.get -> int? +PDFtoImage.IRenderOptions.Height.init -> void +PDFtoImage.IRenderOptions.Rotation.get -> PDFtoImage.PdfRotation +PDFtoImage.IRenderOptions.Rotation.init -> void +PDFtoImage.IRenderOptions.UseTiling.get -> bool +PDFtoImage.IRenderOptions.UseTiling.init -> void +PDFtoImage.IRenderOptions.Width.get -> int? +PDFtoImage.IRenderOptions.Width.init -> void +PDFtoImage.IRenderOptions.WithAnnotations.get -> bool +PDFtoImage.IRenderOptions.WithAnnotations.init -> void +PDFtoImage.IRenderOptions.WithAspectRatio.get -> bool +PDFtoImage.IRenderOptions.WithAspectRatio.init -> void +PDFtoImage.IRenderOptions.WithFormFill.get -> bool +PDFtoImage.IRenderOptions.WithFormFill.init -> void PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.None = 0 -> PDFtoImage.PdfAntiAliasing PDFtoImage.PdfAntiAliasing.Text = 1 -> PDFtoImage.PdfAntiAliasing diff --git a/src/PDFtoImage/RenderOptions.cs b/src/PDFtoImage/RenderOptions.cs index 7debc872..5bf89daf 100644 --- a/src/PDFtoImage/RenderOptions.cs +++ b/src/PDFtoImage/RenderOptions.cs @@ -28,7 +28,7 @@ public readonly record struct RenderOptions( PdfAntiAliasing AntiAliasing = PdfAntiAliasing.All, SKColor? BackgroundColor = null, RectangleF? Bounds = null, - bool UseTiling = false) + bool UseTiling = false) : IRenderOptions { /// /// Constructs with default values.