add method to retrieve any embedded files

This commit is contained in:
Eliot Jones
2019-12-21 16:16:36 +00:00
parent 4d697e3669
commit e984180b3d
8 changed files with 271 additions and 40 deletions

View File

@@ -62,6 +62,11 @@
[NotNull]
public Structure Structure { get; }
/// <summary>
/// Access to rare or advanced features of the PDF specification.
/// </summary>
public AdvancedPdfDocumentAccess Advanced { get; }
/// <summary>
/// The version number of the PDF specification which this file conforms to, for example 1.4.
/// </summary>
@@ -104,6 +109,7 @@
Information = information ?? throw new ArgumentNullException(nameof(information));
pages = new Pages(catalog, pageFactory, isLenientParsing, pdfScanner);
Structure = new Structure(catalog, crossReferenceTable, pdfScanner);
Advanced = new AdvancedPdfDocumentAccess(pdfScanner, filterProvider, catalog, isLenientParsing);
documentForm = new Lazy<AcroForm>(() => acroFormFactory.GetAcroForm(catalog));
}
@@ -242,6 +248,7 @@
{
try
{
Advanced.Dispose();
pdfScanner.Dispose();
inputBytes.Dispose();
}