mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 19:05:01 +08:00
make filter provider and filter public and use tryget for image bytes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration
|
||||
{
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
@@ -74,13 +73,12 @@
|
||||
var page = document.GetPage(1);
|
||||
foreach (var image in page.GetImages())
|
||||
{
|
||||
try
|
||||
if (image.TryGetBytes(out var bytes))
|
||||
{
|
||||
Assert.NotNull(image.Bytes);
|
||||
Assert.NotNull(bytes);
|
||||
}
|
||||
catch (NotSupportedException )
|
||||
else
|
||||
{
|
||||
// Should allow access to raw bytes.
|
||||
Assert.NotNull(image.RawBytes);
|
||||
}
|
||||
}
|
||||
|
@@ -85,6 +85,9 @@
|
||||
"UglyToad.PdfPig.CrossReference.CrossReferenceType",
|
||||
"UglyToad.PdfPig.CrossReference.TrailerDictionary",
|
||||
"UglyToad.PdfPig.Exceptions.PdfDocumentEncryptedException",
|
||||
"UglyToad.PdfPig.Filters.DefaultFilterProvider",
|
||||
"UglyToad.PdfPig.Filters.IFilter",
|
||||
"UglyToad.PdfPig.Filters.IFilterProvider",
|
||||
"UglyToad.PdfPig.PdfFonts.DescriptorFontFile",
|
||||
"UglyToad.PdfPig.PdfFonts.FontDescriptor",
|
||||
"UglyToad.PdfPig.PdfFonts.FontDescriptorFlags",
|
||||
@@ -192,6 +195,7 @@
|
||||
"UglyToad.PdfPig.Outline.Destinations.ExplicitDestinationType",
|
||||
"UglyToad.PdfPig.ParsingOptions",
|
||||
"UglyToad.PdfPig.PdfDocument",
|
||||
"UglyToad.PdfPig.PdfExtensions",
|
||||
"UglyToad.PdfPig.Structure",
|
||||
"UglyToad.PdfPig.Util.Adler32Checksum",
|
||||
"UglyToad.PdfPig.Util.IWordExtractor",
|
||||
|
Reference in New Issue
Block a user