diff --git a/src/PDFtoImage/Conversion.Base64.cs b/src/PDFtoImage/Conversion.Base64.cs index 34842378..cf015859 100644 --- a/src/PDFtoImage/Conversion.Base64.cs +++ b/src/PDFtoImage/Conversion.Base64.cs @@ -1,10 +1,8 @@ -using PDFtoImage.Internals; -using SkiaSharp; +using SkiaSharp; using System; using System.Collections.Generic; using System.Drawing; using System.IO; -using System.Linq; #if NET6_0_OR_GREATER using System.Runtime.CompilerServices; @@ -74,6 +72,25 @@ public static IEnumerable ToImages(string pdfAsBase64String, string? p } } + /// + /// Renders all pages of a given PDF into images. + /// + /// The PDF encoded as Base64. + /// The specific pages to be converted. + /// The password for opening the PDF. Use if no password is needed. + /// Additional options for PDF rendering. + /// The rendered PDF pages as images. + public static IEnumerable ToImages(string pdfAsBase64String, IEnumerable pages, string? password = null, RenderOptions options = default) + { + if (pdfAsBase64String == null) + throw new ArgumentNullException(nameof(pdfAsBase64String)); + + foreach (var image in ToImages(Convert.FromBase64String(pdfAsBase64String), pages, password, options)) + { + yield return image; + } + } + #if NET6_0_OR_GREATER /// /// Returns the PDF page size for a given page number. @@ -184,6 +201,25 @@ public static SKBitmap ToImage(string pdfAsBase64String, Index page, string? pas return ToImage(Convert.FromBase64String(pdfAsBase64String), page, password, options); } + /// + /// Renders a range of pages of a given PDF into images. + /// + /// The PDF encoded as Base64. + /// The specific pages to be converted. + /// The password for opening the PDF. Use if no password is needed. + /// Additional options for PDF rendering. + /// The rendered PDF pages as images. + public static IEnumerable ToImages(string pdfAsBase64String, Range pages, string? password = null, RenderOptions options = default) + { + if (pdfAsBase64String == null) + throw new ArgumentNullException(nameof(pdfAsBase64String)); + + foreach (var image in ToImages(Convert.FromBase64String(pdfAsBase64String), pages, password, options)) + { + yield return image; + } + } + /// /// Renders a range of pages of a given PDF into images. /// diff --git a/src/PDFtoImage/Conversion.ByteArray.cs b/src/PDFtoImage/Conversion.ByteArray.cs index a1111e2b..52c5820e 100644 --- a/src/PDFtoImage/Conversion.ByteArray.cs +++ b/src/PDFtoImage/Conversion.ByteArray.cs @@ -1,10 +1,8 @@ -using PDFtoImage.Internals; -using SkiaSharp; +using SkiaSharp; using System; using System.Collections.Generic; using System.Drawing; using System.IO; -using System.Linq; #if NET6_0_OR_GREATER using System.Runtime.CompilerServices; @@ -83,6 +81,28 @@ public static IEnumerable ToImages(byte[] pdfAsByteArray, string? pass } } + /// + /// Renders all pages of a given PDF into images. + /// + /// The PDF as a byte array. + /// The specific pages to be converted. + /// The password for opening the PDF. Use if no password is needed. + /// Additional options for PDF rendering. + /// The rendered PDF pages as images. + public static IEnumerable ToImages(byte[] pdfAsByteArray, IEnumerable pages, string? password = null, RenderOptions options = default) + { + if (pdfAsByteArray == null) + throw new ArgumentNullException(nameof(pdfAsByteArray)); + + // Base64 string -> byte[] -> MemoryStream + using var pdfStream = new MemoryStream(pdfAsByteArray, false); + + foreach (var image in ToImages(pdfStream, pages, false, password, options)) + { + yield return image; + } + } + #if NET6_0_OR_GREATER /// /// Returns the PDF page size for a given page number. @@ -199,6 +219,28 @@ public static SKBitmap ToImage(byte[] pdfAsByteArray, Index page, string? passwo return ToImage(pdfStream, page, false, password, options); } + /// + /// Renders a range of pages of a given PDF into images. + /// + /// The PDF as a byte array. + /// The specific pages to be converted. + /// The password for opening the PDF. Use if no password is needed. + /// Additional options for PDF rendering. + /// The rendered PDF pages as images. + public static IEnumerable ToImages(byte[] pdfAsByteArray, Range pages, string? password = null, RenderOptions options = default) + { + if (pdfAsByteArray == null) + throw new ArgumentNullException(nameof(pdfAsByteArray)); + + // Base64 string -> byte[] -> MemoryStream + using var pdfStream = new MemoryStream(pdfAsByteArray, false); + + foreach (var image in ToImages(pdfStream, pages, false, password, options)) + { + yield return image; + } + } + /// /// Renders a range of pages of a given PDF into images. /// diff --git a/src/PDFtoImage/Conversion.Stream.cs b/src/PDFtoImage/Conversion.Stream.cs index c9288269..b829d48f 100644 --- a/src/PDFtoImage/Conversion.Stream.cs +++ b/src/PDFtoImage/Conversion.Stream.cs @@ -74,6 +74,34 @@ public static IEnumerable ToImages(Stream pdfStream, bool leaveOpen = return ToImagesImpl(pdfStream, leaveOpen, password, options, null); } + /// + /// Renders a selection of pages of a given PDF into images. + /// + /// The PDF as a stream. + /// The specific pages to be converted. + /// to leave the open after the PDF document is loaded; otherwise, . + /// The password for opening the PDF. Use if no password is needed. + /// Additional options for PDF rendering. + /// The rendered PDF pages as images. + public static IEnumerable ToImages(Stream pdfStream, IEnumerable pages, bool leaveOpen = false, string? password = null, RenderOptions options = default) + { + if (pdfStream == null) + throw new ArgumentNullException(nameof(pdfStream)); + + // Stream -> Internals.PdfDocument + using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen); + + var pageCount = pdfDocument.PageSizes.Count; + + if (pages.Any(p => p >= pageCount)) + throw new ArgumentOutOfRangeException(nameof(pages), $"The page numbers must be between 0 and {pageCount - 1}. The PDF has {pageCount} pages in total."); + + foreach (var bitmap in ToImagesImpl(pdfStream, leaveOpen, password, options, pages)) + { + yield return bitmap; + } + } + #if NET6_0_OR_GREATER /// /// Renders a single page of a given PDF and saves it as a JPEG. @@ -215,10 +243,41 @@ public static SKBitmap ToImage(Stream pdfStream, Index page, bool leaveOpen = fa /// The PDF as a stream. /// The specific pages to be converted. /// 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. /// Additional options for PDF rendering. /// The rendered PDF pages as images. + public static IEnumerable ToImages(Stream pdfStream, Range pages, bool leaveOpen = false, string? password = null, RenderOptions options = default) + { + if (pdfStream == null) + throw new ArgumentNullException(nameof(pdfStream)); + + // Stream -> Internals.PdfDocument + using var pdfDocument = PdfDocument.Load(pdfStream, password, !leaveOpen); + + var pageCount = pdfDocument.PageSizes.Count; + var (offset, length) = pages.GetOffsetAndLength(pageCount); + + if (offset + length > pageCount) + throw new ArgumentOutOfRangeException(nameof(pages), $"The page numbers must be between 0 and {pageCount - 1}. The PDF has {pageCount} pages in total."); + + var pageNumbers = Enumerable.Range(offset, length); + + foreach (var bitmap in ToImagesImpl(pdfStream, leaveOpen, password, options, pageNumbers)) + { + yield return bitmap; + } + } + + /// + /// Renders a range of pages of a given PDF into images. + /// + /// The PDF as a stream. + /// The specific pages to be converted. + /// to leave the open after the PDF document is loaded; otherwise, . + /// The password for opening the PDF. Use if no password is needed. + /// Additional options for PDF rendering. + /// 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 rendered PDF pages as images. public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, Range pages, bool leaveOpen = false, string? password = null, RenderOptions options = default, [EnumeratorCancellation] CancellationToken cancellationToken = default) { if (pdfStream == null) @@ -247,9 +306,9 @@ public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, R /// The PDF as a stream. /// The specific pages to be converted. /// 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. /// Additional options for PDF rendering. + /// 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 rendered PDF pages as images. public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, IEnumerable pages, bool leaveOpen = false, string? password = null, RenderOptions options = default, [EnumeratorCancellation] CancellationToken cancellationToken = default) { @@ -275,9 +334,9 @@ public static async IAsyncEnumerable ToImagesAsync(Stream pdfStream, I /// /// 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. /// Additional options for PDF rendering. + /// 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 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) { diff --git a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt deleted file mode 100644 index 0f7af661..00000000 --- a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Shipped.txt +++ /dev/null @@ -1,139 +0,0 @@ -#nullable enable -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.DpiRelativeToBounds.get -> bool -PDFtoImage.RenderOptions.DpiRelativeToBounds.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, bool UseTiling = false, bool DpiRelativeToBounds = false) -> 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.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.DpiRelativeToBounds.get -> bool -PDFtoImage.IRenderOptions.DpiRelativeToBounds.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 -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 -PDFtoImage.PdfRotation.Rotate270 = 3 -> PDFtoImage.PdfRotation -PDFtoImage.PdfRotation.Rotate90 = 1 -> PDFtoImage.PdfRotation -PDFtoImage.Exceptions.PdfCannotOpenFileException -PDFtoImage.Exceptions.PdfCannotOpenFileException.PdfCannotOpenFileException() -> void -PDFtoImage.Exceptions.PdfException -PDFtoImage.Exceptions.PdfException.PdfException(string! message) -> void -PDFtoImage.Exceptions.PdfInvalidFormatException -PDFtoImage.Exceptions.PdfInvalidFormatException.PdfInvalidFormatException() -> void -PDFtoImage.Exceptions.PdfPageNotFoundException -PDFtoImage.Exceptions.PdfPageNotFoundException.PdfPageNotFoundException() -> void -PDFtoImage.Exceptions.PdfPasswordProtectedException -PDFtoImage.Exceptions.PdfPasswordProtectedException.PdfPasswordProtectedException() -> void -PDFtoImage.Exceptions.PdfUnknownException -PDFtoImage.Exceptions.PdfUnknownException.PdfUnknownException() -> void -PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException -PDFtoImage.Exceptions.PdfUnsupportedSecuritySchemeException.PdfUnsupportedSecuritySchemeException() -> void -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/monoandroid10.0/PublicAPI.Unshipped.txt b/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Unshipped.txt deleted file mode 100644 index 16501054..00000000 --- a/src/PDFtoImage/PublicAPI/monoandroid10.0/PublicAPI.Unshipped.txt +++ /dev/null @@ -1,4 +0,0 @@ -#nullable enable -PDFtoImage.Resource -PDFtoImage.Resource.Attribute -PDFtoImage.Resource.Resource() -> void \ 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 0f7af661..8c7ab877 100644 --- a/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net462/PublicAPI.Shipped.txt @@ -136,4 +136,7 @@ static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password 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 +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.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, 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 0f7af661..8c7ab877 100644 --- a/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net471/PublicAPI.Shipped.txt @@ -136,4 +136,7 @@ static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password 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 +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.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, 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 0f7af661..8c7ab877 100644 --- a/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net481/PublicAPI.Shipped.txt @@ -136,4 +136,7 @@ static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password 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 +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.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, 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 e4a072d6..d4a17523 100644 --- a/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net6.0/PublicAPI.Shipped.txt @@ -173,4 +173,10 @@ static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, System.R static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, 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(byte[]! pdfAsByteArray, System.Range pages, 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, System.Collections.Generic.IEnumerable! pages, 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, System.Range pages, 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 +static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Range pages, 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/net7.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt index e4a072d6..d4a17523 100644 --- a/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net7.0/PublicAPI.Shipped.txt @@ -173,4 +173,10 @@ static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, System.R static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, 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(byte[]! pdfAsByteArray, System.Range pages, 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, System.Collections.Generic.IEnumerable! pages, 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, System.Range pages, 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 +static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Range pages, 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/net8.0-android/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt index e4a072d6..d4a17523 100644 --- a/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net8.0-android/PublicAPI.Shipped.txt @@ -173,4 +173,10 @@ static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, System.R static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, 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(byte[]! pdfAsByteArray, System.Range pages, 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, System.Collections.Generic.IEnumerable! pages, 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, System.Range pages, 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 +static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Range pages, 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/net8.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt index e4a072d6..d4a17523 100644 --- a/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/net8.0/PublicAPI.Shipped.txt @@ -173,4 +173,10 @@ static PDFtoImage.Conversion.ToImagesAsync(System.IO.Stream! pdfStream, System.R static PDFtoImage.Conversion.ToImagesAsync(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, 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(byte[]! pdfAsByteArray, System.Range pages, 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, System.Collections.Generic.IEnumerable! pages, 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, System.Range pages, 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 +static PDFtoImage.Conversion.ToImagesAsync(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Collections.Generic.IAsyncEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(byte[]! pdfAsByteArray, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Range pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, bool leaveOpen = false, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Range pages, 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/netstandard2.0/PublicAPI.Shipped.txt b/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt index 0f7af661..8c7ab877 100644 --- a/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt +++ b/src/PDFtoImage/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt @@ -136,4 +136,7 @@ static PDFtoImage.Conversion.ToImage(string! pdfAsBase64String, string? password 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 +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.ToImages(byte[]! pdfAsByteArray, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(string! pdfAsBase64String, System.Collections.Generic.IEnumerable! pages, string? password = null, PDFtoImage.RenderOptions options = default(PDFtoImage.RenderOptions)) -> System.Collections.Generic.IEnumerable! +static PDFtoImage.Conversion.ToImages(System.IO.Stream! pdfStream, System.Collections.Generic.IEnumerable! pages, 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/Tests/BatchingTests.cs b/src/Tests/BatchingTests.cs index c35346b3..4a72bdb9 100644 --- a/src/Tests/BatchingTests.cs +++ b/src/Tests/BatchingTests.cs @@ -1,4 +1,3 @@ -#if NET6_0_OR_GREATER using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage.Tests; using SkiaSharp; @@ -50,6 +49,26 @@ public void ToImageWithInteger(int? page) CompareStreams(expectedPath, outputStream); } + [TestMethod] + public void ToImagesWithSelectionOdd() + { + int[] selection = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]; + + using var inputStream = GetInputStream(Path.Combine("..", "Assets", "Wikimedia_Commons_web.pdf")); + + int i = 0; + + foreach (var bitmap in ToImages(inputStream, selection, options: new(Dpi: 40))) + { + var expectedPath = Path.Combine("..", "Assets", "Expected", GetPlatformAsString(), $"Wikimedia_Commons_web_{selection[i]}.png"); + using var outputStream = CreateOutputStream(expectedPath); + bitmap.Encode(outputStream, SKEncodedImageFormat.Png, 100); + + CompareStreams(expectedPath, outputStream); + i++; + } + } +#if NET6_0_OR_GREATER [TestMethod] [DataRow(0)] [DataRow(1)] @@ -119,9 +138,69 @@ public void ToImageWithIndexFromEnd(int page) } [TestMethod] - public async Task ToImagesWithRangeAll() + public void ToImagesWithRangeAll() + { + var range = ..; + + using var inputStream = GetInputStream(Path.Combine("..", "Assets", "Wikimedia_Commons_web.pdf")); + + int i = range.Start.Value; + + foreach (var bitmap in ToImages(inputStream, range, options: new(Dpi: 40))) + { + var expectedPath = Path.Combine("..", "Assets", "Expected", GetPlatformAsString(), $"Wikimedia_Commons_web_{i}.png"); + using var outputStream = CreateOutputStream(expectedPath); + bitmap.Encode(outputStream, SKEncodedImageFormat.Png, 100); + + CompareStreams(expectedPath, outputStream); + i++; + } + } + + [TestMethod] + public void ToImagesWithRangeSecondHalf() + { + var range = 10..; + + using var inputStream = GetInputStream(Path.Combine("..", "Assets", "Wikimedia_Commons_web.pdf")); + + int i = range.Start.Value; + + foreach (var bitmap in ToImages(inputStream, range, options: new(Dpi: 40))) + { + var expectedPath = Path.Combine("..", "Assets", "Expected", GetPlatformAsString(), $"Wikimedia_Commons_web_{i}.png"); + using var outputStream = CreateOutputStream(expectedPath); + bitmap.Encode(outputStream, SKEncodedImageFormat.Png, 100); + + CompareStreams(expectedPath, outputStream); + i++; + } + } + + [TestMethod] + public void ToImagesWithSelectionEven() + { + int[] selection = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]; + + using var inputStream = GetInputStream(Path.Combine("..", "Assets", "Wikimedia_Commons_web.pdf")); + + int i = 0; + + foreach (var bitmap in ToImages(inputStream, selection, options: new(Dpi: 40))) + { + var expectedPath = Path.Combine("..", "Assets", "Expected", GetPlatformAsString(), $"Wikimedia_Commons_web_{selection[i]}.png"); + using var outputStream = CreateOutputStream(expectedPath); + bitmap.Encode(outputStream, SKEncodedImageFormat.Png, 100); + + CompareStreams(expectedPath, outputStream); + i++; + } + } + + [TestMethod] + public async Task ToImagesWithRangeAllAsync() { - var range = 0..; + var range = ..; using var inputStream = GetInputStream(Path.Combine("..", "Assets", "Wikimedia_Commons_web.pdf")); @@ -139,7 +218,7 @@ public async Task ToImagesWithRangeAll() } [TestMethod] - public async Task ToImagesWithRangeSecondHalf() + public async Task ToImagesWithRangeSecondHalfAsync() { var range = 10..; @@ -159,7 +238,7 @@ public async Task ToImagesWithRangeSecondHalf() } [TestMethod] - public async Task ToImagesWithSelectionEven() + public async Task ToImagesWithSelectionEvenAsync() { int[] selection = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]; @@ -179,7 +258,7 @@ public async Task ToImagesWithSelectionEven() } [TestMethod] - public async Task ToImagesWithSelectionOdd() + public async Task ToImagesWithSelectionOddAsync() { int[] selection = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]; @@ -197,6 +276,6 @@ public async Task ToImagesWithSelectionOdd() i++; } } +#endif } -} -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/src/Tests/Compatibility/AntiAliasingTests.cs b/src/Tests/Compatibility/AntiAliasingTests.cs index a0db4423..d5e0698e 100644 --- a/src/Tests/Compatibility/AntiAliasingTests.cs +++ b/src/Tests/Compatibility/AntiAliasingTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage; using System; @@ -18,7 +17,6 @@ public void Initialize() #if NET6_0_OR_GREATER if (!OperatingSystem.IsWindows() && !OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS()) Assert.Inconclusive("This test must run on Windows, Linux or macOS."); -#pragma warning disable CS0618 #endif } diff --git a/src/Tests/Compatibility/ApiTests.cs b/src/Tests/Compatibility/ApiTests.cs index 35bc9770..58521503 100644 --- a/src/Tests/Compatibility/ApiTests.cs +++ b/src/Tests/Compatibility/ApiTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage.Tests; using System; diff --git a/src/Tests/Compatibility/AspectRatioTests.cs b/src/Tests/Compatibility/AspectRatioTests.cs index 48a97070..08e062f2 100644 --- a/src/Tests/Compatibility/AspectRatioTests.cs +++ b/src/Tests/Compatibility/AspectRatioTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage.Tests; using System.IO; diff --git a/src/Tests/Compatibility/BackgroundColorTests.cs b/src/Tests/Compatibility/BackgroundColorTests.cs index 290dda63..4ae4de9d 100644 --- a/src/Tests/Compatibility/BackgroundColorTests.cs +++ b/src/Tests/Compatibility/BackgroundColorTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using SkiaSharp; using System; diff --git a/src/Tests/Compatibility/ComparisonTests.cs b/src/Tests/Compatibility/ComparisonTests.cs index d280c54e..fe6190aa 100644 --- a/src/Tests/Compatibility/ComparisonTests.cs +++ b/src/Tests/Compatibility/ComparisonTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage.Tests; using SkiaSharp; diff --git a/src/Tests/Compatibility/ExceptionTests.cs b/src/Tests/Compatibility/ExceptionTests.cs index e57a6eb2..c857fe41 100644 --- a/src/Tests/Compatibility/ExceptionTests.cs +++ b/src/Tests/Compatibility/ExceptionTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage.Exceptions; using PDFtoImage.Tests; diff --git a/src/Tests/Compatibility/FormFillTests.cs b/src/Tests/Compatibility/FormFillTests.cs index 479351d9..08b41863 100644 --- a/src/Tests/Compatibility/FormFillTests.cs +++ b/src/Tests/Compatibility/FormFillTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; @@ -16,7 +15,6 @@ public void Initialize() #if NET6_0_OR_GREATER if (!OperatingSystem.IsWindows() && !OperatingSystem.IsLinux() && !OperatingSystem.IsMacOS()) Assert.Inconclusive("This test must run on Windows, Linux or macOS."); -#pragma warning disable CS0618 #endif } diff --git a/src/Tests/Compatibility/RotationTests.cs b/src/Tests/Compatibility/RotationTests.cs index 84ae4133..62014d59 100644 --- a/src/Tests/Compatibility/RotationTests.cs +++ b/src/Tests/Compatibility/RotationTests.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0618 using Microsoft.VisualStudio.TestTools.UnitTesting; using PDFtoImage; using PDFtoImage.Tests;