Add XObjectFactory to public API

This commit is contained in:
BobLd
2023-11-02 07:47:20 +00:00
parent 1bc0ee7105
commit 6befe2bbfc
2 changed files with 10 additions and 4 deletions

View File

@@ -270,7 +270,7 @@
"UglyToad.PdfPig.Writer.PdfWriterType",
"UglyToad.PdfPig.Writer.PdfPageBuilder",
"UglyToad.PdfPig.Writer.TokenWriter",
"UglyToad.PdfPig.XObjects.XObjectImage",
"UglyToad.PdfPig.XObjects.XObjectFactory",
"UglyToad.PdfPig.XObjects.XObjectImage",
"UglyToad.PdfPig.XObjects.XObjectType"
};

View File

@@ -11,10 +11,16 @@
using Graphics.Core;
using Tokenization.Scanner;
using Tokens;
using Util;
using Util;
internal static class XObjectFactory
{
/// <summary>
/// External Object (XObject) factory.
/// </summary>
public static class XObjectFactory
{
/// <summary>
/// Read the XObject image.
/// </summary>
public static XObjectImage ReadImage(XObjectContentRecord xObject, IPdfTokenScanner pdfScanner,
ILookupFilterProvider filterProvider,
IResourceStore resourceStore)